Now i\'m using UIWebView
and with canInitWithRequest:
of NSURLProtocol
i can intercept all requests and do with it what I want.
In
One can use WKURLSchemeHandler to intercept each and every request to be loaded in WKWebView, Only disadvantage is that you cannot register http or https scheme for interception,
Solution over that is, Replace your http/https scheme of url with custom scheme url like xyz:// for e.g. https://google.com can be loaded like xyz://google.com Now you will get a callback in WKURLSchemeHandler there you again replace it back to https and load data programmatically and call urlSchemeTask.didReceive(response)
This way each and every https request will come to your handler.