API Gateway CORS
- Must be enabled when you try to call API Gateway from another domain
- The
OPTIONSpreflight must contains the followingAccess-Control-Allow-MethodsAccess-Control-Allow-HeadersAccess-Control-Allow-Origin

Note: If your API has AWS Lambda Proxy enabled, it doesn't go through the API Gateway so this option won't work
- To do so, you need to send back an
Access-Control-Allow-Originin the Lambda function itself