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

SameSite #1792

Closed
robslotboom opened this issue Jun 5, 2023 · 2 comments
Closed

SameSite #1792

robslotboom opened this issue Jun 5, 2023 · 2 comments

Comments

@robslotboom
Copy link

robslotboom commented Jun 5, 2023

See this code in debug_toolbar/static/debug_toolbar/js/toolbar.js:

 "sameSite" in options
            ? "; sameSite=" + options.samesite
            : "; sameSite=Lax",

Shouldn’t this be?

 "sameSite" in options
            ? "; sameSite=" + options.sameSite <<< Capital S
            : "; sameSite=Lax",

@matthiask
Copy link
Member

Good find, that's correct.

I wonder if we shouldn't lowercase all keys though, according to https://developer.mozilla.org/en-US/docs/Web/API/Document/cookie all standard keys use kebab-case names. That would probably be more consistent.

@robslotboom
Copy link
Author

kebab-case :-DDD

|| That would probably be more consistent.

Yes I think so.

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

2 participants