Narayan soni
Narayan soni

Reputation: 821

B2G os XmlHttpRequest not sending Cookie header after redirect response header

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

Answers (1)

Shishir Arora
Shishir Arora

Reputation: 5943

Use option 'redirect' : 'follow' while making xhr request, also add systenxhr permission in manifest if this is cross origin request.

Upvotes: 0

Related Questions