serverless-cors-plugin icon indicating copy to clipboard operation
serverless-cors-plugin copied to clipboard

Preflight CORS with Lambda Proxy Integration

Open TimothyDalbey opened this issue 8 years ago • 1 comments

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 avatar Dec 19 '16 18:12 TimothyDalbey

@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.

joostfarla avatar Dec 20 '16 06:12 joostfarla