You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.
WKWebView considers the x-local scheme insecure, when the page is loaded via HTTPS and refuses to load local files via x-local.
Workaround:
Use autoLoadJavaScriptFile or autoLoadStyleSheetFile before loading the webpage.
This will generate at WKUserScript that doesn't have the same restrictions.
I'm having a problem with loading data from x-local with the contents of my webview being loaded from file://.
And the x-local load fails silently, neither onload nor onerror of the XmlHttpRequest seem to get called.
Is this the same error?
Directly loading the data with file:// from a subfolder of knownFolders.documents() also didn't work
Edit: onreadystatechange() does work, so not the same problem.
Edit2: fetch() does not work
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
WKWebView
considers the x-local scheme insecure, when the page is loaded via HTTPS and refuses to load local files viax-local
.Workaround:
Use
autoLoadJavaScriptFile
orautoLoadStyleSheetFile
before loading the webpage.This will generate at WKUserScript that doesn't have the same restrictions.
Alternativ for javascript files.
Alternative for CSS files.
No known workaround for other filetypes.
I'm working on a solution, but I cannot promise when I can have it solved.
The text was updated successfully, but these errors were encountered: