jameslnewell / xhr-mock

Utility for mocking XMLHttpRequest.
196 stars 48 forks source link

Feature request for sending/setting cookies automatically when present. #113

Open radiantshaw opened 3 years ago

radiantshaw commented 3 years ago

XMLHttpRequest sends cookies if they are present in a Cookie request header, and also sets them if the Set-Cookie response header is present. I wanted to test this scenario in our app but can't because the implementation is not present (I checked the code but apologies if I might have misunderstood).

Any plans on adding this feature? Or if it's already present, then how do I get it to work?