Skip to content

WKWebView does not allow the POST queries as it ignores the NSURLRequest Body. So here is a workaround. We can do a post request in the JS instead.

Notifications You must be signed in to change notification settings

kapilrathore/POST-with-WKWebView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

POST-with-WKWebView

WKWebView does not allow the POST queries as -[WKWebView loadRequest:] ignores HTTPBody in POST requests. So here is a workaround. We can do a post request in the JS instead. I have just added a few lines of code to the WKWebView.

Used https://putsreq.com/ for dummy post requests.

About

WKWebView does not allow the POST queries as it ignores the NSURLRequest Body. So here is a workaround. We can do a post request in the JS instead.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published