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

substitute preflight method wildcard with explicit methods #545

Closed
wants to merge 1 commit into from
Closed

substitute preflight method wildcard with explicit methods #545

wants to merge 1 commit into from

Conversation

colemanProjects
Copy link
Contributor

While using fili, I got the error message:
Method PUT is not allowed by Access-Control-Allow-Methods in preflight response

After digging around I found that for preflight requests many browsers don't support a wildcard.
https://stackoverflow.com/questions/44914330/method-put-is-not-allowed-by-access-control-allow-methods-in-preflight-response

my PUT requests work after applying this fix.

@michael-mclawhorn
Copy link
Contributor

Looks like a reasonable change. What's the motivation? Which endpoint are you trying to PUT to?

@colemanProjects
Copy link
Contributor Author

I created a custom endpoint and needed to PUT to that one.

@michael-mclawhorn
Copy link
Contributor

Alright. Add a CHANGELOG entry on this then.
Then I think it should be able to get approved.

@colemanProjects
Copy link
Contributor Author

great, will do

@colemanProjects
Copy link
Contributor Author

Changelog updated

@michael-mclawhorn
Copy link
Contributor

Did you mean to close it?

@colemanProjects
Copy link
Contributor Author

nope, i didn't

@colemanProjects
Copy link
Contributor Author

@michael-mclawhorn
Copy link
Contributor

You could have just reopened this one

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