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

HTTP: Built-in support for CORS preflight requests #4469

Open
jgaalen opened this issue Sep 21, 2023 · 1 comment
Open

HTTP: Built-in support for CORS preflight requests #4469

jgaalen opened this issue Sep 21, 2023 · 1 comment

Comments

@jgaalen
Copy link

jgaalen commented Sep 21, 2023

When gatling does a preflight request, so using the method OPTIONS, it also sends the cookie. By standards, cookies shouldn't be sent for preflight requests. So Gatling should avoid sending the cookies.
I have a case that cookies are handled in the backend, but they shouldn't as in reality cookies are never added to those requests.

@slandelle
Copy link
Member

The thing here is that Gatling does't have built-in support for CORS and preflight requests.

You're using a generic OPTIONS request that only abides to the HTTP specification, not the CORS or Fetch ones.

I'm not found of adding something like isPreflight method on generic HTTP requests. What would be great would be to add a withPreflight method that would take care of automatically generating the preflight request.

Is this something you would be interested in contributing or sponsoring?

@slandelle slandelle changed the title Cookie sent with preflight / options request HTTP: Built-in support for CORS preflight requests Sep 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants