-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow configuration of RequestMode
on wasm
#51
Comments
Good idea! Would you like to make a PR? I suggest we use an |
Done! #52 |
emilk
added a commit
that referenced
this issue
Feb 13, 2024
Closes #51 - Add `Mode` to `Request` on wasm builds; - Add `Mode::Cors` as default; --------- Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Whenever I need to test a local wasm, I kept getting CORS errors since all requests uses mode cors (https://github.com/emilk/ehttp/blob/master/ehttp/src/web.rs#L45C5-L45C43). It would be nice to be able to configure on request which mode we would like to use, like
no-cors
.This only affects wasm, tho, since CORS is something only available on browsers.
The text was updated successfully, but these errors were encountered: