简体   繁体   中英

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.

<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. Using AWS URL ( https://xxxxxx.execute-api.xxxxx.amazonaws.com ) always works relibily so I think it is a custom domain problem.

I can reproduce this with the custom domain on using Postman and Curl command, using AWS URL never gave an error.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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