Articles → AWS → CORS In AWS API GatewayCORS In AWS API GatewayIn this article, we will enable CORS in AWS API Gateway.Test For CORS First, create a service in the API gateway. Use this website to test if the API is CORS enabled or not.If you are getting the following error, it means that your API is not CORS enabled.Click to EnlargeEnabling CORS For enabling the CORS, select the method and click on Actions → Enable CORS.Click to EnlargeThe following window will appear.Click to EnlargeClick on the Enable CORS and replace existing CORS headers. A confirmation message will appear.Click to EnlargeClick on the Yes, replace existing values button. The CORS is enabled.Click to EnlargeTest For CORS Again Again, test for CORS and this time you do not get any error.Click to EnlargePosted By - Karan Gupta Posted On - Thursday, February 16, 2023 Query/Feedback Your Email Id** Subject* Query/Feedback Characters remaining 250**
Query/Feedback