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

Cookie is sent only for certain requests #25

Open
kAlvaro opened this issue Apr 20, 2021 · 0 comments
Open

Cookie is sent only for certain requests #25

kAlvaro opened this issue Apr 20, 2021 · 0 comments

Comments

@kAlvaro
Copy link

kAlvaro commented Apr 20, 2021

Unless I'm missing something, the XDEBUG_SESSION cookie is sent only for GET and POST requests. That means it is not possible to step debug end-points that use e.g. PATCH or PUT. That's very typical when working with single-page applications and RESTful APIs in general.

Also, I'd say the cookie seems to be lost for GET/POST as well when the browser submits an AJAX request that uses some other method. (I'm not fully sure about this).

Edit: In my case, these requests are initiated by using the Fetch API rather than XMLHttpRequest. Perhaps that's the relevant factor rather than the HTTP method being used.

@kAlvaro kAlvaro changed the title Cookie is sent only for GET and POST requests Cookie is sent only for certain requests Apr 20, 2021
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