Open herbsun opened 7 years ago
这里有篇文章可以看看《让 WKWebView 支持 NSURLProtocol》 https://blog.yeatse.com/2016/10/26/support-nsurlprotocol-in-wkwebview/
WKWebView 支持NSURLProtocol 后好像 网页内POST的请求会有问题,即使不处理,postData 也会被清除。
STMURLProtocol 里的canInitWithRequest 为什么需要把非GET得方式过滤掉呢?POST不让发起请求吗?
你这也算预加载??
@hxming2919 WKWebView Protocol 拦截会丢失post body参数
@Herb-Sun 只能trick 使用 registerSchemeForCustomProtocol