Mac os开发中访问网络需要在两个地方进行设置。
第一步开启沙盒网络输入输出流渠道:
第二步跟iOS一样,在Info.plist
中打开网络通信安全权限:
以参考WebView请求,网络错误:
WebPageProxy::tryReloadAfterProcessTermination: process crashed and the client did not handle it, not reloading the page because we reached the maximum number of attempts
缺少第一步操作WebPageProxy::didFailProvisionalLoadForFrame: frameID = 3, domain = NSURLErrorDomain, code = -1022
缺少第二步操作