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

php - Passing multiple values in a url using checkbox -

compilation - PHP install fails on Ubuntu 14 (make: *** [sapi/cli/php] Error 1) PHP 5.6.20 -

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