Closed raghu64 closed 6 years ago
Hi i have a scenario where i have to create a cookie with the current hostname as domain, but it's adding an extra dot(.) before the hostname.
let domain = location.hostname window.$cookies.set('name', 'value', '12h', '/', domain)
Ex: expected domain for cookie: abc.google.com actual domain name set in cookie .abc.google.com
abc.google.com
.abc.google.com
Thanks.
How were you able to resolve this issue?
Got it, don't specify the domain.
Hi i have a scenario where i have to create a cookie with the current hostname as domain, but it's adding an extra dot(.) before the hostname.
Ex: expected domain for cookie:
abc.google.com
actual domain name set in cookie.abc.google.com
Thanks.