简体   繁体   中英

cookies: send cookies from subdomain(1) server to subdomain(2) frontend but cookies are not getting set in the browser

I am sending cookies from subdomain(1) express server to subdomain(2) react frontend with cookie domain set as actual domain. cookies domain is set to my actual domain.

I can see cookies in the network panel, cookies are coming with the response.

I tested in postman, everything is working as expected but not in browser. Tried in firefox and chrome as well.

So nothing worked. We could not figure out why cookies were not getting set. We decided to set cookies manually using js-cookie lib.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM