Any reason to strip response body when no-cors mode is provided to fetch? #8097
Unanswered
raythurnvoid
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Is this happening in a |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using the svelte-kit's provided fetch method and calling the Microsoft token API to get a new token and call the ms-graph API; in my current configuration, I have to perform the request from Node; Microsoft checks the Origin header and will respond with an error if set. I've tried to provide fetch with mode: 'no-cors' and I've noticed that the response body is stripped away:
kit/packages/kit/src/runtime/server/fetch.js
Line 68 in ab5f1c1
Is there any reason to remove the body response when no-cors is being used?
Beta Was this translation helpful? Give feedback.
All reactions