Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getting an extra dot(.) in cookie domain #38

Closed
raghu64 opened this issue Jul 24, 2018 · 2 comments
Closed

getting an extra dot(.) in cookie domain #38

raghu64 opened this issue Jul 24, 2018 · 2 comments

Comments

@raghu64
Copy link

raghu64 commented Jul 24, 2018

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

Thanks.

@raghu64 raghu64 closed this as completed Jul 24, 2018
@casey-lee
Copy link

How were you able to resolve this issue?

@casey-lee
Copy link

Got it, don't specify the domain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants