interceptor icon indicating copy to clipboard operation
interceptor copied to clipboard

Headers missing for requests passing though fakeServer

Open revathskumar opened this issue 7 years ago • 0 comments

When using interceptor on pages which using cookie session, the non intercepted requests are not sending with cookies which causes request to respond back with 401.

Nise, won't allow to setHeader for each request when using the fakeServer. We need a xhr.onCreate callback to be exposed by fakeServer for this ability. ALso sinon has black listed headers as per the spec which includes Cookie.

I have raise a issue on sinonjs/nise#49

revathskumar avatar May 09 '18 06:05 revathskumar