Reputation: 821
I am working on B2G OS. I am trying to hit one API using XHR which is redirecting me to another API with Set-Cookie
response header. In the next API request that cookie which I got in the first header response which is missing in request header.
Upvotes: 1
Views: 70
Reputation: 5943
Use option 'redirect' : 'follow' while making xhr request, also add systenxhr permission in manifest if this is cross origin request.
Upvotes: 0