简体   繁体   English

自定义域AWS API网关403

[英]Custom Domain AWS API-Gateway 403

Custom domain has been mapped with AWS API-Gateway and using my custom domain name randomly gives following error. 自定义域已使用AWS API-Gateway映射,并且使用我的自定义域名随机给出以下错误。

<html>
    <body>
        <h1>403 Forbidden</h1>
Request forbidden by administrative rules.
    </body>
</html>

I have tried different domain mappings and have also used root (/) as a default but changing mappings does not improve reliability. 我尝试了不同的域映射,也将root(/)用作默认值,但是更改映射并不能提高可靠性。 Using AWS URL ( https://xxxxxx.execute-api.xxxxx.amazonaws.com ) always works relibily so I think it is a custom domain problem. 使用AWS URL( https://xxxxxx.execute-api.xxxxx.amazonaws.com )始终可以正常工作,因此我认为这是一个自定义域问题。

I can reproduce this with the custom domain on using Postman and Curl command, using AWS URL never gave an error. 我可以在使用Postman和Curl命令的自定义域中重现此内容,而使用AWS URL绝对不会出错。

问题是我们的DNS,而不是AWS,由于通配符,DNS显示随机结果。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM