I have an ASP.NET Core web app with an API that requires users to be authenticated. About a month ago, I realized I could no longer use Postman API tool because even though I'm authenticated, my API calls would get a response as if I'm not authenticated.
When I look at available cookies under cookies tab, I see four of them. I recognize one of them but not the other 3.
The cookies I'm seeing in the "Cookies" tab in Postman while making API calls are:
- ARRAffinity
- .AspNetCore.my_cookie
- _ga
- _gid
All four cookies are showing my domain. The only difference I've noticed is that the second cookie show mydomain.com
while others show .mydomain.com
. I recognize the second one because I name my cookie i.e. my_cookie
. That one is also the largest one which also makes sense because I store some information in the cookie. I assume, .AspNetCore
prefix is added by my app because it's an ASP.NET Core web app with API.
What are the other three cookies? Do I need them?
The other important thing I've noticed is that when I use Fiddler to inspect my API call, under "Cookies" tab in Fiddler, I only see the tree cookies that I couldn't identify being sent with the API call. I do NOT see the one that I recognize which is issued by my site.
Looks like my issues with Postman have something to do with these three unidentified cookies being sent with the API call but not the one that I issue i.e. .AspNetCore.my_cookie
is NOT being sent with my API call.