问题
I have an API Gateway in AWS with url:
my.aws.url/prod
I defined a custom domain name
mywebsite.com
whhich points to the prod stage. The result of this is I get a target domain name, which I can then enter as the target of a DNS entry to point mywebsite.com to that target.
What's strange is I can access my.aws.url/prod/api/ping just fine and I get 200 OK. But if I enter the target domain name such as target.domain.name/api/ping, it doesn't work. It returns 403 forbidden.
来源:https://stackoverflow.com/questions/53881216/custom-domain-name-on-api-gateway-always-returns-403-forbidden-even-though-api-g