0
ajayak created
I have the following code to read the Abp.AuthToken cookie from Request:
var context = _httpContextAccessor.HttpContext;
// Getting auth token from cookies as this request is coming from Shopify instead of my app
var authToken = context.Request.Cookies.FirstOrDefault(c => c.Key == "Abp.AuthToken");
This code works perfect on development but on Production, authToken.Value is empty. I verified that the cookie is visible in dev tools but not transfered.
3 Answer(s)
-
0
Cookies are not cross-domain. That would be a security disaster.
-
0
Hi aaron,
What could be the other possible way to achieve this result? I don't have the Bearer token in the header.
-
0
Hi @ajayak,
Instead of cookies, you can use token.