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
Post a Comment