WKWebView and NSURLProtocol not working

后端 未结 4 1785
深忆病人
深忆病人 2020-12-02 08:05

When using the old UIWebView you could catch the requests by implementing a custom NSURLProtocol. I us this to handle requests that requires authentication.

I tried

4条回答
  •  再見小時候
    2020-12-02 08:45

    Try this approach: https://github.com/WildDylan/WKWebViewWithURLProtocol/tree/master/Example/WKWebViewWithURLProtocol

    It may be uses private API - i'm not sure ;)

提交回复
热议问题