Currently, both applications are deployed on separate Heroku deployments. I need to send cookies from between the backend and frontend.
The reason I want to do this is because I am using express session and I did some research and found out that I can only send cookies across from one another,if both frontend and backend are from the same domain.
I got it from here: https://stackoverflow.com/questions/66503751/cross-domain-session-cookie-express-api-on-heroku-react-app-on-netlify
option 1 : How I can have both frontend(REACT) and backend(EXPRESS), both which are hosted on Heroku, on the same domain?
option 2 Another option is to set up my backend Express' api under a proxy according to them. How would I do this on Heroku?
I am fine with any option. Thank you