lundi 9 novembre 2015

Cookies not sent over request on different port

I have 2 Rails applications running on the same machine on different ports. When I make a request to the main application everything works as expected (cookies and session are set). However when I make a request to the second app on a different port nothing is being sent. The only way I have been able to get around this is to pass a session id as a parameter and load the data from a database record. But I do not want to do this.

Is there something I need to be doing/setting to allow the cookies and session to be shared between the apps? From what I have read, cookies are supposed to be sent if the domain is the same, no matter the port numbers.

Aucun commentaire:

Enregistrer un commentaire