Post not yet marked as solved
Post marked as unsolved with 10 replies, 8,173 views
We are migrating from deprecated API UIWebView to WKWebView.In WKWebView we loading one login page. After the success, we wanna try to catch the body and try to call other internal API.But we got nil in the below delegate method.func webView(_ webView: WKWebView, decidePolicyFor navigationAction: WKNavigationAction, decisionHandler: ((WKNavigationActionPolicy) -> Void)) {print(navigationAction.request.httpBody) //nil}However, UIWebView getting a proper HTTP body.