fake-api-gateway-lambda
fake-api-gateway-lambda copied to clipboard
sadly, enable cors behavior is incorrect
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.
Right, this behavior should change to only handle the OPTIONS method.