Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CORS support. Allow OPTIONS request. Support requests from @aws-sdk/client-lambda #84

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

djsamseng
Copy link

Fixes #16

Sets response headers allowing requests from browsers that send preflight OPTIONS requests. Previously using @aws-sdk/client-lambda returned CORS errors. Now requests and responses can be sent.

Test Plan: Build and run locally. Ensure curl -XPOST still works. Ensure requests from browsers now work and from @aws-sdk/client-lambda Test steps added to Contributing.md. Ensure make integ-tests-and-compile passes

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

…lient-lambda

Fixes aws#16

Sets response headers allowing requests from browsers that send
preflight OPTIONS requests. Previously using @aws-sdk/client-lambda
returned CORS errors. Now requests and responses can be sent.

Test Plan: Build and run locally. Ensure curl -XPOST still works.
Ensure requests from browsers now work and from @aws-sdk/client-lambda
Test steps added to Contributing.md. Ensure `make integ-tests-and-compile`
passes
@major-mayer
Copy link

Can somebody please merge this? Maybe @valerena
It would make the testing of custom Lambda functions with container images much simpler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Question: Is it possible to configure CORS?
2 participants