mardi 28 juillet 2020

Cookie not sent in API calls

We have a web application web.companyname.com which makes API calls to a bunch of microservices service1.companyname.com, service2.companyname.com etc.

The application is in our corporate network behind a proxy and the proxy authenticates the users and assigns the cookie

Set-Cookie: NSC_TMAS=547857834758478454545;Secure;Path=/;Domain=companyname.com

The problem : The application cannot send cookie in API calls to endpoints service1.companyname.com, service2.companyname.com etc. , alought it can read it - console.log(document.cookie) shows the required cookie.

When the same application is opened with chrome withour security , the cookie is sent without any problem.

What could be the reason?




Aucun commentaire:

Enregistrer un commentaire