My app is issuing ajax requests to a remote server. The same app works ok in IOS 12.4 but in IOS 14 the ajax requests are failing for CORS related errors.
I see the origin sent as null
I see that IOS 14 forces an OPTIONS (http server log)request when we are only submitting a POST via ajax. This OPTIONS request is not sent by IOS on IOS version 12.4 (again same app). Also works fine in Android.
Is there a simple solution to this ? I tried setting the CORS on server but I have not been successful.
I saw this post Cordova 10.0 Ajax not working in iOS 14 but working fine in Android
but did not offer a solution.
Error we see in javascript console
[Error] Preflight response is not successful
[Error] XMLHttpRequest cannot load https://<server>:<port>/<subdirectory>/page.jsp?d=x due to access control checks.
[Error] Failed to load resource: Preflight response is not successful (page.jsp, line 0)
Thanks