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.
Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)
3 Answer(s)
-
0
Cookies are not cross-domain. That would be a security disaster.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
Hi aaron,
What could be the other possible way to achieve this result? I don't have the Bearer token in the header.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
Hi @ajayak,
Instead of cookies, you can use token.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image)