3

I load a specific URL with additional HTTP headers - setValue("OAuth " + token, forHTTPHeaderField: "Authorization"). Afterward, WKWebView implicitly redirects to another URL (it's okay), but without these headers. Is there a way of changing the HTTPHeaderField of URL before opening?

I've looked at didReceiveServerRedirectForProvisionalNavigation, but out of luck.

Nikita Ermolenko
  • 2,139
  • 2
  • 19
  • 41
  • Have you seen https://stackoverflow.com/q/45604336/5329717 ? Have you tried any of those approaches to begin with? – Kamil.S Jun 20 '20 at 10:28

0 Answers0