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

write the Access-Control-Allow-Methods header if Router.HandleOPTIONS… #200

Closed
wants to merge 3 commits into from

Conversation

pnordahl
Copy link

… is true

This is a required CORS preflight header to allow the browser to perform AJAX for any of the other available methods for a given URL.

Rather than set HandleOPTIONS = false, and be forced to create separate OPTIONS handlers for my (numerous!) routes it's simpler/less work to let the router do it when it's setting the Allow header. My preference would be to not maintain a separate fork of the router for such a simple change.

Are you opposed to merging this into mainline?

Regards,
Patrick

@ericatienza
Copy link

This is a very useful PR !

@julienschmidt julienschmidt added this to the v1.3 milestone Sep 16, 2019
julienschmidt added a commit that referenced this pull request Sep 29, 2019
@julienschmidt
Copy link
Owner

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.

None yet

3 participants