Closed danew closed 4 years ago
@danew I'm not sure I'd expect it to be set when you test it on an insecure connection. Try doing the same thing with the document.cookie
API - I expect that you will get the same results.
@danew I'm not sure I'd expect it to be set when you test it on an insecure connection. Try doing the same thing with the
document.cookie
API - I expect that you will get the same results.
Good call out. Reference:
Thanks for your help @theodorejb
When using
es-cookie
to set a cookies value with thesecure
attribute the code fails on the majority of browsers I have tested, including the latest Chrome versions.Version: 1.2.0 and 1.3.2
Steps To Reproduce
test.ts
npm run prepublish; npm start; open http://localhost:8080/test/browser/
Link to code example: https://github.com/danew/es-cookie-test
The current behaviour
The cookie doesn't get set when using the secure attribute when it is set to true.
The expected behaviour
The cookie is correctly set when the secure attribute is set to true.