NSURLProtocol-WebKitSupport
NSURLProtocol-WebKitSupport copied to clipboard
About WKURLSchemeHandler
Note:If you target iOS 11, you can now use WKURLSchemeHandler to avoid this trick! 😆
But, comment said : "A class conforming to the WKURLSchemeHandler protocol provides methods for loading resources with URL schemes that WebKit doesn't know how to handle itself."
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: ''http' is a URL scheme that WKWebView handles natively'
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: ''https' is a URL scheme that WKWebView handles natively'
it seems that it is not allowed handle http & https protocol by WKURLSchemeHandler