#Why my browser is not setting cookies sent from express server?

1 messages · Page 1 of 1 (latest)

bold viper
#

My backend and frontend are hosted on different domains (in frontend in netlify and backend in render), I have tried every possible solutions I found on internet like credentials true, cors, etc.
I checked response header in the browser and set-cookie is present there with warning sign in the end. Please help me to solve this issue.

pure steeple
#

you can't set cookies for another domain

#

that would be a security risk

#

what you could do is make that api return the cookie as a string and then set it in the client side