fake-api-gateway-lambda icon indicating copy to clipboard operation
fake-api-gateway-lambda copied to clipboard

sadly, enable cors behavior is incorrect

Open dominictarr opened this issue 4 years ago • 1 comments

The enable cors functionality in this module is how I wish api-gateway worked -- it sets the header on the response, which is sent to the client, even if the lambda doesn't set it. however, this isn't actually how aws lambda works. When I was trying to make cors work with lambda it only worked when I explicitly set the cors headers in the lambda.

dominictarr avatar Aug 29 '21 22:08 dominictarr

Right, this behavior should change to only handle the OPTIONS method.

Raynos avatar Aug 30 '21 06:08 Raynos