0

I'm new to angular7 and I have an angular 7 project which has been used aws services.

When I run the project, I see an error in Chrome's console: Access to XMLHttpRequest at 'https://MyURL' from origin 'http://localhost:4200' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

So I used chrome extension to solve this and It works fine. But my question is is there any way without using the chrome extension?

P.S I have already check lot of questions regarding to this issue. But couldn't find a possible answer.

mithu
  • 217
  • 2
  • 12

1 Answers1

0

Please see this answer.

You must enable CORS both on your API Gateway and in the response of your Lambda function.

Thales Minussi
  • 6,266
  • 1
  • 24
  • 43