awslabs / aws-api-gateway-developer-portal

A Serverless Developer Portal for easily publishing and cataloging APIs
Apache License 2.0
928 stars 400 forks source link

No 'Access-Control-Allow-Origin' header is present on the requested resource (UNIQUE ERROR) #385

Open Prabhat-Sutar opened 4 years ago

Prabhat-Sutar commented 4 years ago

Hi, I have been working on this from the last 2 days, same error(No 'Access-Control-Allow-Origin' header is present on the requested resource) coming again, and again, "Enable CORS " feature works for one API at a time.

If I enable CORS for GET API, I am getting errors in POST API, and when enabling for POST API I am getting error with GET API. Azure is far better than AWS in CORS Enabling, its too easy, but AWS is totally shit.

Its very basic thing, CORS should be enabled in just one click for all the API's, and don't need to enable it again and again.

Totally frustrated, any suggestion will help a lot.