When communicating to my phoenix server from a service(another phoenix server) running on different ports cookies looks like are not transfered

When communicating to my phoenix server from a service(another phoenix server) running on different ports cookies looks like are not transfered.

I have used the cors plug to allow access just to my other service running on different port but that does not seem to do the trick for me.

The problem is I am trying to enforce session cookies based authentication and without the cookies this does not work.

Any ideas if there is an easy way to tackle this issue or is it generally a bad prcatice to authanticate on a service running on different port through session cookies ?