Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
536 views
in Technique[技术] by (71.8m points)

ios10 - iOS 10 "Starting WebFilter logging for process" + Proxy-Authorization header removed from request

Starting from iOS 10 I noticed such logs in my app

yyyy-MM-dd HH:mm:sss HelloWorld[XXX:XXXXXX] WF: === Starting WebFilter logging for process HelloWorld
yyyy-MM-dd HH:mm:sss HelloWorld[XXX:XXXXXX] WF: _userSettingsForUser mobile: {
    filterBlacklist =     (
    );
    filterWhitelist =     (
    );
    restrictWeb = 1;
    useContentFilter = 0;
    useContentFilterOverrides = 0;
    whitelistEnabled = 0;
}
yyyy-MM-dd HH:mm:sss HelloWorld[XXX:XXXXXX] WF: _WebFilterIsActive returning: NO

I have reviewed iOS 10 Release notes but there is no info about WebFilter feature

Also I noticed that for some sites Proxy-Authorization removed from request (I use programmatically configured proxy) and this issue started from iOS 10.

Anybody can throw a light on this?

Update 1

I found stable case when this happens

  1. WebView request / for some site example.org over https
  2. Received html contains http link to some resource (image for css) like http://example.org/icon.png
  3. This lead to Header removal
See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

If you want to remove the message on the XCode’s console then, please find the below steps.

Select Product => Scheme => Edit Scheme or use shortcut : CMD + <
Select the Run option from left side.
On Environment Variables section, add the variable OS_ACTIVITY_MODE = disable

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...