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
I noticed that headers are somehow not passed to Response object.
I have a simple setup like this
constrestServer=newFakeRest.FetchServer('http://localhost:3000');restServer.toggleLogging();restServer.init(data);restServer.addResponseInterceptor(function(response){console.log('Response interceptor',response);returnresponse;});fetchMock.mock('begin:http://localhost:3000',restServer.getHandler());// and somewhere in the codefetch('http://localhost:3000/scans?'+queryString,{ headers }).then(res=>{console.log('fetch response headers',res.headers);});
FetchServer log shows correct headers.
I tried with fetchMock version 5 and the newest 9, same results.
Tested on Chrome and Firefox.
The text was updated successfully, but these errors were encountered:
I noticed that headers are somehow not passed to Response object.
I have a simple setup like this
FetchServer log shows correct headers.
I tried with fetchMock version 5 and the newest 9, same results.
Tested on Chrome and Firefox.
The text was updated successfully, but these errors were encountered: