admin管理员组文章数量:1419624
I was wondering if there is a way to access an cookie set using angular $cookieStore service, from several different subdomains, let's say: api.yoursite
www.yoursite
and jsut yoursite
The documentation doesn't mention this issue at all.
Is there a solution, or do I have to use the lower level JavaScript cookies API?
I was wondering if there is a way to access an cookie set using angular $cookieStore service, from several different subdomains, let's say: api.yoursite.
www.yoursite.
and jsut yoursite.
The documentation doesn't mention this issue at all.
Is there a solution, or do I have to use the lower level JavaScript cookies API?
Share Improve this question asked Jul 9, 2014 at 13:11 Oleg BelousovOleg Belousov 10.1k14 gold badges74 silver badges128 bronze badges1 Answer
Reset to default 5The default cookieStore
service in angular doesn't support this.
This feature has been requested before: https://github./angular/angular.js/issues/950 and others have asked similar questions: how to set domain for angularJS $cookies
It seems your options are to write your own cookeistore or use something else.
I would remend trying: https://github./ivpusic/angular-cookie
本文标签: javascriptAngular cookieStore serviceshare cookie with sub domainsStack Overflow
版权声明:本文标题:javascript - Angular $cookieStore service - share cookie with sub domains - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745314911a2653107.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论