cmp-cc / vue-cookies

A simple Vue.js plugin for handling browser cookies
MIT License
408 stars 70 forks source link

Samesite bug on cookie remove #56

Closed pkariz closed 4 years ago

pkariz commented 4 years ago

Browser: Firefox 77.0.1 Issue: Cookie “mycookie” will be soon rejected because it has the “sameSite” attribute set to “none” or an invalid value, without the “secure” attribute. To know more about the “sameSite“ attribute, read https://developer.mozilla.org/docs/Web/HTTP/Headers/Set-Cookie/SameSite

It happens when i call Vue.$cookies.remove('mycookie'); because it rewrites a cookie and sets no Samesite and no Secure flag. It's possible to solve this by just adding Secure flag to it when removing it.

Created a #57 for it