My application has two views :
a login view awaiting user credentials
the main view containing the webview
When the user inputs his credentials, a native asynchronous POST method is sent to the server. If the credentials are valid, the user will be redirected to the webview view and load it using the load(request) method.
note : request is also a POST method using the said credentials.
The reason behind this two-step authentication is to avoid opening the webview with a 403 error login/password couple ; if authentication fails in the first step the users stays on the login view.
Here is a flow chart explaining how the authentication works
Versions of iOS between 10.0 and 11.2 run the application without any issue. Devices and emulators using iOS 11.3 open the webview with a 403 error.
So far I can assert two things (and has been tested by our backend) :
the authentication succeeds using the asynchronous POST method, meaning the credentials are correct and communication between the app and the server is working as intended
when the webview is loaded, the server does not recieve any parameters for authentication which explains the 403 login/password error.
Currently this issue is rendering my app unsable so a quick fix is greatly needed. GET requests have been tested and their parameters are sent without any issue.
Any suggestions would be most welcome.
TL;DR - since iOS11.3 POST requests do not work properly in WKWebViews, how can I make a more or less secured authentication using a GET request ?
PS : couldn't add the iOS 11.3 Tag to it, would greatly appreciate if someone could add it.