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

Sending secure cookies to localhost via http #13

Open
oalders opened this issue Oct 2, 2023 · 0 comments
Open

Sending secure cookies to localhost via http #13

oalders opened this issue Oct 2, 2023 · 0 comments

Comments

@oalders
Copy link

oalders commented Oct 2, 2023

I'm just wondering if this is strictly correct: https://metacpan.org/release/DAGOLDEN/HTTP-CookieJar-0.014/source/lib/HTTP/CookieJar.pm#L156

next if $cookie->{secure}             && $scheme ne 'https';

https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies states that a secure cookie can be sent via HTTP if the host is localhost. Disclaimer: I did not dig into any RFCs.

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