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
On all versions of msw after 2.4.3 as soon as you mswServer.listen({ onUnhandledRequest: "bypass" }); all axios requests are without cookie headers.
Directly setting a cookie header in axios call doesn't have any problems, indicating that the bug is not on axios side and maybe not on msw, but rather due to interference between msw and axios-cookiejar-support.
Describe the bug
This is the bug on
msw
side mswjs/msw#2338On all versions of
msw
after2.4.3
as soon as youmswServer.listen({ onUnhandledRequest: "bypass" });
all axios requests are without cookie headers.Directly setting a cookie header in axios call doesn't have any problems, indicating that the bug is not on
axios
side and maybe not onmsw
, but rather due to interference betweenmsw
andaxios-cookiejar-support
.To Reproduce
yarn && yarn start
msw
serverExpected behavior
Cookie headers from a cookie jar are passed through
msw
for each axios request.Code that reproduces the bug
https://glitch.com/edit/#!/windy-continuous-sandpaper — I couldn't make it work there :(
Locally reproduce: https://github.com/aristofun/bugs-js-msw
Environments
The text was updated successfully, but these errors were encountered: