serverless-cors-plugin
serverless-cors-plugin copied to clipboard
Preflight CORS with Lambda Proxy Integration
So - it looks like I can add the headers to the POST integration for my Lambda Proxy Integration - but I'm not sure how I should be doing this for the OPTIONS requests for endpoints. From what I can tell, I've configured things correctly, but I'm still getting {"message": "Internal server error"}
back from the OPTIONS endpoint specifically.
@TimothyDalbey are you using Serverless >= 1.0? This plugin is only for older versions without native support for CORS, so in that case this might be not the best place to ask. Anyway, you should have a look at the Cloudwatch logs to see the actual error message.