cmp-cc / vue-cookies

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

Set Cookie Secure Not Working #14

Closed who-jonson closed 6 years ago

who-jonson commented 6 years ago

I am trying to set a secure cookie like-- this.$cookies.set('key_name', value, -1, '/path', window.location.hostname, true);

It's not working. But when I am trying like - this.$cookies.set('key_name', value, -1, '/path', window.location.hostname);

this, it's working. But the content isn't secure. How can I set secure cookies?

cmp-cc commented 6 years ago

Only through HTTPS

who-jonson commented 6 years ago

Thanks..