_WKResourceLoadDelegate does not currently provide a method for signing URL requests for sub-resource loads. A willSendRequest SPI should be added to _WKResourceLoadDelegate to provide an opportunity to attach dynamic headers (i.e., cryptographic signatures). Sharing the existing _WKResourceLoadDelegate infrastructure, -[WKResourceLoadDelegate webView:resourceLoad:willSendRequest:] will return an NSURLRequest synchronously via the delegate implementation.
Created attachment 391792 [details] Patch
Builds are failing due to a last minute formatting change to pass the style requirements.
Created attachment 391804 [details] Patch
Created attachment 391828 [details] Patch
Comment on attachment 391828 [details] Patch _WKResourceLoadDelegate callbacks are intentionally informative only. Waiting for this roundtrip will considerably hurt performance when a resource load delegate is set.