CORS issues #1100
helghast79
started this conversation in
General
CORS issues
#1100
Replies: 2 comments
-
I think it uses curl under the hood. Basically the request is not made in the webview. It is done basically in the same way as if you would use curl fro, the terminal |
Beta Was this translation helpful? Give feedback.
0 replies
-
You can set fetch("https://localhost", {
method: "POST",
responseType: 1,
mode: 'no-cors',
body: Body.json({id: 1}),
headers: {"Accept": "application/json", "Content-Type": "application/json"}
}) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Some javascript libraries use XMLHttpRequest to exchange data with the server and they fail due to CORS.
Tauri http works but how can it override XMLHttpRequest so that these libraries work without change?
Beta Was this translation helpful? Give feedback.
All reactions