WKWebView : load local files using http(s):// URLs instead of "file://"

In Android there's a helpful feature in webview to load local files in assets folder as https to comply with same origin content policy (https://developer.android.com/reference/androidx/webkit/WebViewAssetLoader)

Is there anything equivalent in WKWebView? I've been looking it up for a while and couldn't find anything conclusive. Thank you.

WKWebView : load local files using http(s):// URLs instead of "file://"
 
 
Q