3👍
✅
Seems when using NGINX (or perhaps any reverse proxy), it’s necessary to set the domain
in the cookie when sending it from the server.
0👍
Are you send XHR request to that Rails API?
The browser cannot give access to 3rd party cookies like those received from ajax requests for security reasons.
You can get/set the cookie manually.
Please refer this question.
How to get a cookie from an AJAX response?
👤NeK
Source:stackexchange.com