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

fix: Detect presence of httpOnly cookie #2595

Closed
wants to merge 3 commits into from

Conversation

DafyddLlyr
Copy link
Contributor

@DafyddLlyr DafyddLlyr commented Dec 21, 2023

What the problem?

Following the deploy of #2591, the login / logout flow on staging is now broken. I believe that this is due to the fact that the browser cannot even detect the presence of the httpOnly cookie, so the hasJWT() function is always returning false on staging.

What's the solution?

Add a second cookie without the httpOnly flag which can be used as a proxy to detect the presence of the jwt cookie.

Solution found here - https://stackoverflow.com/a/63877877

@DafyddLlyr DafyddLlyr requested a review from a team December 21, 2023 15:10
Copy link

github-actions bot commented Dec 21, 2023

Removed vultr server and associated DNS entries

@DafyddLlyr
Copy link
Contributor Author

Closed in order to merge this into a more robust solution for #2591

@DafyddLlyr DafyddLlyr closed this Dec 21, 2023
@DafyddLlyr DafyddLlyr deleted the dp/detect-httpOnly-cookie branch December 21, 2023 16:05
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

Successfully merging this pull request may close these issues.

1 participant