I'm trying to send a post with jQuery Ajax and it's working for desktop and Android devices but for some reason iOS devices are giving me an error..
$.ajax({
        method: "POST",
        url: myURL,
        mode: 'cors',
        data: {
            '0': 'data.list'
        },
        headers: {
            'Authorization': 'Basic ' + btoa(username + ':' + password),
        },
        success: function(response) {
            console.log(response);
        },
        error: function() {
            console.log("error");
        }
    });
So why is it not working for iOS devices? I mean, Ok if it did not work at all but it's working for Windows, Mac, Chrome, Safari, Android etc.
And I did allow Cors, headers etc. in my PHP code
The error messages I receive are
OPTIONS url1 Origin url2 is not allowed by Access-Control-Allow-Origin. XMLHttpRequest cannot load url1. Origin url2 is not allowed by Access-Control-Allow-Origin.
I removed the url, FYI.
 
    