Serverless Framework API Gateway CORS config
If you deploy a Serverless Framework Java Lambda to AWS and attempt to call it locally while developing your frontend, you’ll run into a CORS error like this: Access to XMLHttpRequest at ‘https://abc.execute-api.us-west-1.amazonaws.com/some/api’ from origin ‘http://localhost:3000’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is …
Continue reading “Serverless Framework API Gateway CORS config”
