My iOS UIWebView page is based on Cordova open source framework, and I want to add some customize http headers in its webview URL request, my solution is to add them in the foll
Swift 5.2 Solution
By making URLRequest & setValue
URLRequest
setValue
@IBOutlet var wkWebView: WKWebView! let url = URL(string: "https://YouAreBest.com") var request = URLRequest(url: url!) request.setValue("1", forHTTPHeaderField:"userid") wkWebView.load(request)