Thanks @rafalkitta2! This weird behavior is still there in Xcode 16.0 (beta 3).
Post
Replies
Boosts
Views
Activity
Only note that the Apple Developer Program License Agreement: requires "not to install, use or run the Apple SDKs on any non-Apple-branded computer".
I simply need a way to inject a custom header into requests that are handled by a WKWebView.
With NSSelectorFromString(@"registerSchemeForCustomProtocol:"), I can do that for all WebViews in my app, but it would be OK to have to set this interceptor for https scheme for each WebView separately. I really hate the idea of having to modify the HTML content of each WebView with some javascript only to replace the https scheme with some custom scheme (then, I can use the documented setURLSchemeHandler as @eskimo demonstrates in another thread).
Any hints?