Post

Replies

Boosts

Views

Activity

Reply to Loading Angular project in WKWebView: Cors issues on JS files
I've stumbled upon a similar issue and thus on this question, however I also did find fixes for some of these issues. First, as you already pointed out, is base href="/" needs to be changed to base href="./" Second, the type="module" can stay in the script tag, so no need to change that. Last, in your Swift code you need to set a preference key on WKWebView so it's allowed to load other files (fixing the "access control checks"). webView.configuration.preferences.setValue(true, forKey: "allowFileAccessFromFileURLs") I guess you've already found fixes for your issues and I hope this would help others too.
Topic: Safari & Web SubTopic: General Tags:
Nov ’24
Reply to Loading Angular project in WKWebView: Cors issues on JS files
I've stumbled upon a similar issue and thus on this question, however I also did find fixes for some of these issues. First, as you already pointed out, is base href="/" needs to be changed to base href="./" Second, the type="module" can stay in the script tag, so no need to change that. Last, in your Swift code you need to set a preference key on WKWebView so it's allowed to load other files (fixing the "access control checks"). webView.configuration.preferences.setValue(true, forKey: "allowFileAccessFromFileURLs") I guess you've already found fixes for your issues and I hope this would help others too.
Topic: Safari & Web SubTopic: General Tags:
Replies
Boosts
Views
Activity
Nov ’24
Reply to Xcode 15.0 crashes when uploading apps to App Store Connect
Hi! I've had a similar issue the last few days and found that changes to the Developer License Agreement of our account had to be accepted. After accepting them, everything worked again. Hopefully this also solves your issue! Cheers, Dom
Replies
Boosts
Views
Activity
Sep ’23