Closed ezewu closed 1 year ago
Could you create a reproduction example? I have difficulties following the steps you take to get the issue.
Ok, I will write an example to upload to the warehouse, it may be next Monday, thank you
@FabianLars https://github.com/ezewu/appiframe This is the code repository I use
imageSrc.value = convertFileSrc("C:\\data\\1.png");
iframeSrc.value = convertFileSrc("C:\\data\\1\\index.html");
When base.js is introduced into index.html, it will report an error
This is an upstream issue, see https://github.com/MicrosoftEdge/WebView2Feedback/issues/2341
You're basically using our built-in protocol asset
but on Windows, iframe requests are not captured, it is a limitation in WebView2.
They added a new API to fix this shortcoming but we can't use it until it is stable.
Thank you for your answer, how to use this new api AddWebResourceRequestedFilter in tauri
Like Amr said, it can't be used until it lands in a stable SDK, which did not happen yet.
This function is currently completely useless, and it is still under development?
The new WebView2 api that will allow Tauri to also listen to requests inside iframes and not just in the main window is still under development, yes. In other words, we have to wait for Microsoft to be able to fix your issue.
@FabianLars @amrbashir Thank you for the answer, it seems that I will use electron for a while
[✔] Environment
[-] Packages
[-] App
I have same issue
Solve issue with this config
"protocol": {
"all": true,
"asset": true,
"assetScope": ["*"]
},
would be appreciate some indication in the documentation ... #Rip_The_Doc.
Describe the bug
Tauri opens the web project on the local hard disk. If the opened project introduces js, it will report an error, Failed to load resource: net::ERR_CONNECTION_REFUSED, how to solve this problem, thank you for your help, I searched for this in Issues The problem seems to be solved by using register_uri_scheme_protocol, but I’m not sure if it can be solved. I don’t know how to rust code, and I didn’t run the code snippets posted by others.
Reproduction
No response
Expected behavior
No response
Platform and versions
Stack trace
No response
Additional context
No response