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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南