title: Cordova IOS 5.1.1 app running in IOS 14 causes CORS errors , same app. running in IOS 12.4 works
body: <p>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.</p>
  <p>I see the origin sent as null</p>
  <p>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.</p>
  <p>Is there a simple solution to this ?  I tried setting the CORS on server but I have not been successful.</p>
  <p>I saw this post
  <a href="https://stackoverflow.com/questions/64064651/cordova-10-0-ajax-not-working-in-ios-14-but-working-fine-in-android">Cordova 10.0 Ajax not working in iOS 14 but working fine in Android</a></p>
  <p>but did not offer a solution.</p>
  <p>Error we see in javascript console</p>
  <pre><code>[Error] Preflight response is not successful
  [Error] XMLHttpRequest cannot load https://&lt;server&gt;:&lt;port&gt;/&lt;subdirectory&gt;/page.jsp?d=x due to access control checks.
  [Error] Failed to load resource: Preflight response is not successful (page.jsp, line 0)
  </code></pre>
  <p>Thanks</p>