Allow the developer to send secure cookies no matter what
See original GitHub issueBecause my nodejs app behind an nginx.
Browser == https ==> nginx == http ==> nodejs app
So req.protocol
always be http
, then I cookies.set(name, value, {secure: true}
it throw Cannot send secure cookie over unencrypted connection
Error.
Issue Analytics
- State:
- Created 9 years ago
- Reactions:1
- Comments:13 (8 by maintainers)
Top Results From Across the Web
Everything You Need to Know About Cookies for Web ...
In general, cookies are very secure when implemented correctly. Browsers have a lot of built-in limitations that we covered earlier, partly due ...
Read more >Using HTTP cookies - MDN Web Docs
You can ensure that cookies are sent securely and aren't accessed by unintended parties or scripts in one of two ways: with the...
Read more >When to use HTTPS for local development - web.dev
Secure cookies are set only on HTTPS, but not on http://localhost for all browsers. And because SameSite:none and __Host also require the ...
Read more >Get Ready for New SameSite=None; Secure Cookie Settings
A New Model for Cookie Security and Transparency Developers must use a new cookie setting, SameSite=None , to designate cookies for cross-site access....
Read more >Cookies, document.cookie - The Modern JavaScript Tutorial
One cookie may not exceed 4KB in size. The number of cookies allowed on a domain is around 20+ (varies by browser). Cookie...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Has anyone solved this issue for koa?
@fengmk2 it seem this still happen in koa