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

Add option to modify access-control-allow-headers and -methods #7

Merged
merged 4 commits into from
Apr 8, 2024

Conversation

n0rdlicht
Copy link
Contributor

Adds headers and methods as keywords arguments and adds them to the return headers if set. This is in preparation to add this to https://github.com/simonw/datasette-cors.

@n0rdlicht
Copy link
Contributor Author

Currently missing tests, will add them as soon as possible. @simonw let me know if there is other things to be finalized/changed here before it can be merged. This would be really helpful to add CORS support for datasettes with plugins like datasette-cors or -graphql and others.

@simonw
Copy link
Owner

simonw commented Apr 8, 2024

This looks good to me. I'll merge it and add tests.

@simonw simonw merged commit 4ee1fbe into simonw:master Apr 8, 2024
simonw added a commit that referenced this pull request Apr 8, 2024
simonw added a commit that referenced this pull request Apr 8, 2024
simonw added a commit that referenced this pull request Apr 8, 2024
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.

2 participants