Closed who-jonson closed 6 years ago
I am trying to set a secure cookie like-- this.$cookies.set('key_name', value, -1, '/path', window.location.hostname, true);
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.$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?
Only through HTTPS
Thanks..
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?