Replies: 2 comments 15 replies
-
The first thing to clarify is that WebUI is only a tool to connect your application to the web browser to use it as your main GUI. All other things, like CORS, are entirely out of control by WebUI. Normally, the server-side control handles the request or ignores it. So, the client should respect the server-side rules and put the necessary headers. Keep in mind that your application is running on |
Beta Was this translation helpful? Give feedback.
-
Hi, this is not just an xpath module, it is part of a general program using webui, which parses data from external sources to form a representation. As already mentioned, webui by itself is not able to solve the CORS problem in any way, and the presented module is a solution to your problem using a special publicly available free CORS proxy. You asked how webui users solve this problem, I showed you a specific way that works for me, without any complications. For your purposes, only one specific line is enough, the link to which I gave, so that firstly there was a clear example of practical use, and secondly, on the site itself, which provides this specialized proxy service, you can get the details of use. But, I repeat, this has nothing to do with the webui library used at all, it is rather a practical issue that falls into its ecosystem when applied in practice. Or maybe I completely misunderstood the question, sorry. |
Beta Was this translation helpful? Give feedback.
-
Hi. I plan to write some client software and found WebUI as a great option. But the web application I want to run uses WASM and is making calls to some websites to get data (API REST calls).
In the past, it always failed because of missing sufficient CORS headers on server side and issues with the Same Origin Policy. I understand that the API holder does not want to send a CORS header with *. If I want to run a web app in WebUI (or any other web gadget) I always run against these issues. I would need a way to force the used webbrowser to ignore CORS and Same Origin Policy. But I found no such option. Is there a practical way to get around these limitations? How do you guys handle these issues?
Beta Was this translation helpful? Give feedback.
All reactions