cross origin requests are only supported for http wkwebview code example
Example: cross origin requests are only supported for http wkwebview
webView.configuration.preferences.setValue(true, forKey: "allowFileAccessFromFileURLs")
webView.configuration.preferences.setValue(true, forKey: "allowFileAccessFromFileURLs")