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

Adds CORS Header to all responses #81

Closed
wants to merge 1 commit into from
Closed

Conversation

craig552uk
Copy link

Question 1: Should there be default CORS header(s), and if so, what should it be?
Question 2: Instead of default CORS headers, should there be a hook (or other) for configurable response headers?

This PR adds the following header to all responses (untested).

Access-Control-Allow-Origin: *

Issue ref: #80

Adds `Access-Control-Allow-Origin:*` header to all responses
@zachleat
Copy link
Member

I know someone else suggested this PR-ing this but as noted in #80 (comment) I don’t think this would be a good default for folks. Let’s hold out for the request modifier hook enhancement.

Sorry!

@zachleat zachleat closed this Jun 19, 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