如何修复 xcode 错误“网络过滤器处于活动状态”?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/42195761/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to fix xcode bug "web filter is active"?
提问by isJulian00
Hello I am getting this in the log and im not sure what it is and why it is logging this message also does it have any bad affect on my app ?
您好,我在日志中收到了此消息,我不确定它是什么以及为什么它会记录此消息,它对我的应用程序有任何不良影响吗?
2017-02-12 20:20:21.222930 goball [760:91949] WF: _userSettingsForUser mobile: {
filterBlacklist = (
);
filterWhitelist = (
);
restrictWeb = 1;
useContentFilter = 0;
useContentFilterOverrides = 0;
whitelistEnabled = 0;
}
2017-02-12 20:20:21.223110 goball [760:91949] WF: _WebFilterIsActive returning: NO
回答by Michael Dautermann
It took me some research to figure out what's going on but what you are running into is Safari 10's "enhanced content security policy"in action.
我花了一些研究才弄清楚发生了什么,但您遇到的是Safari 10 的“增强的内容安全策略”在起作用。
E.G. you might be loading your page from a remote server via https://
, but the page itself requests images via non-encrypted http://
URL's.
例如,您可能通过 加载您的页面从远程服务器https://
,但页面本身通过非加密http://
URL请求图像。
See if you can find out what image URL's are being loaded and then add the domains to your App Transport Security exceptions.
看看您是否可以找出正在加载的图像 URL,然后将域添加到您的应用程序传输安全例外。