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

CORS preflight request sent for "simple requests" #1491

Open
rexxars opened this issue Jul 20, 2024 · 0 comments
Open

CORS preflight request sent for "simple requests" #1491

rexxars opened this issue Jul 20, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@rexxars
Copy link
Contributor

rexxars commented Jul 20, 2024

Describe the bug
"Simple requests" should not trigger a preflight request, instead they should reject if the server responds without the necessary access-control-allow-origin header.

To Reproduce
Steps to reproduce the behavior:

  1. Send a GET request with no custom headers from http://localhost:1234 to http://localhost:9876
  2. Observe that there is an OPTIONS request sent first (the CORS preflight check), instead of simply performing the request

Expected behavior
Requests that conform to the "simple request" pattern shouldn't trigger a preflight

@rexxars rexxars added the bug Something isn't working label Jul 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant