0

I support a previously developed app. For my functionality to work, I want to use cookies. But I don't understand why they don't go to the server. What could be the problem ?

The frontend part of the app is written on Angular (last version). Backend part on Net Core 3.1.

Here list of cookies: 1_

Do I understand correctly that these cookies should be sent with every request to the backend (in cases where the cookie is collected in the same way as the backend service) ?

Now with requests, not a single cookie goes away. I want to understand why.

2_

Why can this be ?

Also. There is a gateway between the frontend and the backend. It passes requests and responses. These are admin settings. Maybe they somehow interfere and conflict with the CORS settings ?

  • Try to check your code, whether you set the cookies in the HTTP request or not? Besides, to allow receiving & sending cookies by a CORS request successfully, you could set the [XMLHttpRequest.withCredentials property](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/withCredentials) to true. Reference: [Set cookies for cross origin requests](https://stackoverflow.com/questions/46288437/set-cookies-for-cross-origin-requests) – Zhi Lv Sep 10 '20 at 09:49

0 Answers0