iOS13.4.1 - XMLHTTPRequest cannot load error

I am using XMLHTTPRequest to post the data in javascript. Upto iOS13.3.1 it is worked fine in safari, chorme browsers. When i update the device to latest OS iOS 13.4.1 then it is showing XMLHTTPRequest cannot load error in debug console for both safari, chrome browsers and the functionality is not working as expected.

While debugging found some pints, please check my observations below.

  1. It is not failing for all requests, for some of them getting response status as 200. I am not sure is there anything changed specifically in iOS 13.4.1
  2. In code i am using
    request.open('POST', url, false)


Can anyone please help me out.

Replies

just in connected mode I am getting the below error just in 13.4.1:

Request header field Authorization is not allowed by Access-Control-Allow-Headers

XMLHttpRequest cannot load http:***** due to access control checks.