Not alter headers for requests #713
Replies: 3 comments 1 reply
-
Worth mentioning that
Lines 115 to 136 in d101762 If I understand this correctly, the issue has 2 areas to surface:
msw/src/node/createSetupServer.ts Lines 55 to 57 in d101762 The Line 12 in d101762 I agree that request headers may not be the best way to store this internal information.
That's an interesting idea, but Service Worker cannot access request cookies:
I find the |
Beta Was this translation helpful? Give feedback.
-
I've just run into this issue as well... the pre-flight request fails due to the |
Beta Was this translation helpful? Give feedback.
-
While the Now when the interceptors library generates and sets |
Beta Was this translation helpful? Give feedback.
-
This is a follow up for #678.
When a request is intercepted by MSW a custom header
x-msw-request-id
is sent through request. This could cause some issues if the request is not handled, for example the server could have some role onaccess-control-allow-headers
that could block the request.At the same time, we need a way to identify the request. Could be better if we move the identifier into a cookie instead ?
Beta Was this translation helpful? Give feedback.
All reactions