I send a post request to my API located at http://api.board.app.dev:82/api/private/v1/users/current from my emberjs app located at http://www.app.dev:4200/.
The returned data is saved in localestorage but I also want to save token on cookie.
Actually, I do this :
cookies[:user] = 1
return { status: 'ok', token: user.authentication_token, email: user.email }
I see the cookie on the response :
But when I go to http://api.board.app.dev:82/api/private/v1/users/current I never see the cookie in the chrome console.
Any idea ?