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

Access-Control-Request-Method vs Access-Control-Request-Methods #22

Closed
puggan opened this issue May 13, 2024 · 2 comments
Closed

Access-Control-Request-Method vs Access-Control-Request-Methods #22

puggan opened this issue May 13, 2024 · 2 comments

Comments

@puggan
Copy link

puggan commented May 13, 2024

image

return $request->getMethod() === 'OPTIONS' && $request->headers->has('Access-Control-Request-Method');

The Access-Control-Request-Methods header exists in both singular and plural variants.

My firefox sends the plural version, and this package seams to only support the singular version.

@puggan
Copy link
Author

puggan commented May 13, 2024

oh, one of them was allow ant the other is request, but anyway, firefox dosn't seam to send the Access-Control-Request-Method be default

@puggan
Copy link
Author

puggan commented May 13, 2024

Sorry, was looking at the response header, doh, sorry

@puggan puggan closed this as completed May 13, 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

No branches or pull requests

1 participant