let configuration = WKWebViewConfiguration()
configuration.preferences.setValue(true, forKey: "allowFileAccessFromFileURLs")
if #available(iOS 10.0, *){
configuration.setValue(true, forKey: "allowUniversalAccessFromFileURLs")
}
let configuration = WKWebViewConfiguration()
configuration.preferences.setValue(true, forKey: "allowFileAccessFromFileURLs")
if #available(iOS 10.0, *){
configuration.setValue(true, forKey: "allowUniversalAccessFromFileURLs")
}
本文标题:wkwebView 跨域
本文链接:https://www.haomeiwen.com/subject/vjmyrrtx.html
网友评论