Angular access to Apigateway

0

My Angular 12 website hosted in S3 fails to route from one page to another because the website fails to get resources through Apigateway during the routing action. The error message I see is "Failed to load resources: net::ERR_NAME_NOT_RESOLVED." What to I have to do to allow Angular to access resources through Apigateway? By the way, the site works just fine when I run it locally from my development machine.

AWS
已提问 2 年前571 查看次数
1 回答
1

The error indicates that the client is not able to resolve the DNS name for the API. Make sure the site on S3 is properly configured and has the right domain name when it is making the API calls.

profile pictureAWS
专家
Uri
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则