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

Using angular-cookie to share cookies across domains #45

Closed
c0debreaker opened this issue May 4, 2015 · 2 comments
Closed

Using angular-cookie to share cookies across domains #45

c0debreaker opened this issue May 4, 2015 · 2 comments

Comments

@c0debreaker
Copy link

I have 2 AngularJS applications running on my localhost. I haven't transferred it yet to a real domain.

Am I right that if I set domain on both applications to localhost, angular-cookie should be able to share the cookies to my 2 applications?

@yunderboy
Copy link

Yeah, I've encountered the same problem.
Let me know if you figure out a way to solve the issue! I'd really appreciate it!

Sicerely

@c0debreaker
Copy link
Author

Yup, just set your domain and not the FQDN.

For example

.microsoft.com

Notice, I didn't include the host before the domain. So any app in .microsoft.com domain will be able to use that same cookie.

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