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

HttpOnly cookie handling #2456

Open
adam-eltanbouli opened this issue Jun 11, 2024 · 0 comments
Open

HttpOnly cookie handling #2456

adam-eltanbouli opened this issue Jun 11, 2024 · 0 comments

Comments

@adam-eltanbouli
Copy link

I am not sure if this is an issue or my inexperience with Brython...

Scenario:
Request A receives HttpOnly cookie from backend (containing some token). Request B afterwards needs this cookie to authenticate.

Symptoms:

  1. request A gets the cookie (visible in inspect -> Network -> request cookies and in request headers as 'set-cookie', but NOT VISIBLE in inspect -> Application -> Cookies)
  2. request B sends no cookie despite flag 'withCredentials' being sent to true in both requests
  3. Writing the very same code as plain JavaScript XHR (code is almost identical to Brython) and then using callback from Brython resolved the issue (when called from plain JavaScript XHR - cookie is handled properly in both request A and request B)
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