Enabling CORS For Local AWS API Gateway
If you’d like to use CORS in your AWS API Gateway, it’s pretty easy to configure in the Console. You just select the resource (or the root if you’d like to enable it for all resources) and select Actions -> Enable CORS, like this: If you’re using SAM, it might be much more useful for you to define it within the SAM template file directly, as described in the documentation....