Post

Replies

Boosts

Views

Activity

Reply to WKWebView using URLRequest HTTPBody is nil in WKNavigationDelegate (decidePolicyFor)
Hello. this workaround works for me for wkwebkit ios 10 let params = @"param1=1&param2=2"; self.request.HTTPBody = [params dataUsingEncoding:NSUTF8StringEncoding]; let dataTask = [NSURLSession.sharedSession 					dataTaskWithRequest:self.request 					completionHandler:^(NSData *_Nullable data, NSURLResponse *_Nullable response, NSError *_Nullable error) { 							 if (data) { 										[self.webView loadData:data MIMEType:@"text/html" characterEncodingName:@"UTF-8" baseURL:url.baseURL]; 							 } }]; [dataTask resume]; instead of this [self.webView loadRequest:self.request]; Hope it helps.
Topic: Safari & Web SubTopic: General Tags:
Jan ’21