Custom Domain Name on API Gateway always returns 403 forbidden even though API Gateway returns 200

与世无争的帅哥 提交于 2019-12-11 18:23:02

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!