Jai
Jai

Reputation: 724

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.

Upvotes: 1

Views: 850

Answers (1)

Jai
Jai

Reputation: 724

The problem was our DNS and not AWS, DNS was showing random results due to the wildcard.

Upvotes: 0

Related Questions