iOSHttpProxyDemo icon indicating copy to clipboard operation
iOSHttpProxyDemo copied to clipboard

wkwebview设置代理后,还是打不开google.com页面

Open ghost opened this issue 4 years ago • 3 comments

ghost avatar Mar 26 '21 09:03 ghost

I also see this problem. If you open the WKWebView2VC.swift first - before opening the UIWebView - you can not load any website - including any site that has a redirect - and sometimes HTTPS also fails.

samheather avatar Apr 27 '21 22:04 samheather

I also see this problem. If you open the WKWebView2VC.swift first - before opening the UIWebView - you can not load any website - including any site that has a redirect - and sometimes HTTPS also fails.

I fix an issue because of using the same URLSession. Maybe can fix this problem.

Nemocdz avatar May 05 '21 11:05 Nemocdz

Fantastic! I've tested this, I think it is a partial solution. Now it is possible to load WKWebView first, however it still cannot load a site like Facebook (http://facebook.com). I attach a screenshot showing the result (i.e. from trying to load https://facebook.com by changing URL in WKWebView2VC.swift): image

samheather avatar May 05 '21 11:05 samheather