HTTP Post is not sending body for iOS version <11 in WKWebView. Sample request is fireXhr("https://hooks.zapier.com/hooks/catch/XXX/", { loginId: 4, password: 4 }, "POST", {}, function(response) { console.log(response); }); } function fireXhr(url, data, method, headers, callback) { try { var request = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject("Microsoft.XMLHTTP"); callback && (request.onreadystatechange = function() { if(request.readyState == 4 && request.status == 200) { callback(request); } }); request.open(method, url, true); for(var header in headers) { request.setRequestHeader(header, headers[header]); } request.send(JSON.stringify(data)); } catch(e) { console.log(e); } }
If this works correctly in currently shipping version, then there is nothing to fix from WebKit side. We can not change the past.