如何修复xcode错误“web过滤器是活动的”? [英] How to fix xcode bug "web filter is active"?
问题描述
2017-02-12 20:20:21.222930 goball [760:91949] WF:_userSettingsForUser手机:{
filterBlacklist =(
);
filterWhitelist =(
);
restrictWeb = 1;
useContentFilter = 0;
useContentFilterOverrides = 0;
whitelistEnabled = 0;
}
2017-02-12 20:20:21.223110 goball [760:91949] WF:_WebFilterIsActive return:NO
我花了一些研究来确定发生了什么,但是你所遇到的是 Safari 10的增强内容安全策略。
E.G。您可能通过 https://
从远程服务器加载您的页面,但该页面本身通过未加密的 http://
网址。
查看是否可以找到正在加载的图片网址,然后将域添加到您的App Transport Security例外。
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
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.
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.
See if you can find out what image URL's are being loaded and then add the domains to your App Transport Security exceptions.
这篇关于如何修复xcode错误“web过滤器是活动的”?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!