ruby on rails - ng-token-auth for all subdomains -


i'm working on rails app angular front end , we're using ng-token-auth , devise_token_auth authentication.

we've got working pretty well, need persist session across different subdomains (www.app.com, api.app.com, test.app.com, example).

i'm trying set cookieops object:

$authprovider.configure({     apiurl: '',     cookieops: {       domain: '*.app.com'     } }); 

but seems have no effect. accomplished this?

we using ng-token-auth on different subdomains. try , replace cookieops: { domain: 'app.com' } . should work (remove *. prefix)


Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -