Skip to content

Commit 0679402

Browse files
authored
Merge pull request #11 from SillyLittleTech/codex/fix-insecure-baseurl-in-web-view
Fix insecure WKWebView fallback baseURL in ViewController
2 parents 26e730f + c5d83a2 commit 0679402

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mos/Flean/ViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class ViewController: NSViewController, WKNavigationDelegate, WKScriptMessageHan
4949
</body>
5050
</html>
5151
"""
52-
self.webView.loadHTMLString(fallbackHTML, baseURL: nil)
52+
self.webView.loadHTMLString(fallbackHTML, baseURL: Bundle.main.bundleURL)
5353
return
5454
}
5555

0 commit comments

Comments
 (0)