You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The headers like Cookie are missing for the requests which pass though the fakeServer and filter.
This is causing the requests to lose the sessions.
constserver=sinon.fakeServer.create({logger: console.log,unsafeHeadersEnabled: true});server.autoRespond=true;server.xhr.filters=[];server.xhr.useFilters=true;//If the filter returns true, the request will not be faked - leave originalserver.xhr.addFilter(function(method,url,async,username,password){// have some condition to allow some requests to pass through});server.respondWith((xhr,id)=>{xhr.respond(200,{"Content-Type": "application/text"},"Hello World");});
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
The headers like
Cookie
are missing for the requests which pass though thefakeServer
and filter.This is causing the requests to lose the sessions.
The text was updated successfully, but these errors were encountered: