Hi there!
I have a strange problem relating AJAX POST requests and iOS... I'm working in a MelonJS game that, at some points, should do a "POST" AJAX call to a server PHP script while sending a huge data string (that can't be send through "GET"); then, the server should return the URL of an image. The whole thing works fine while testing it on Android devices using CocoonJS, but doesn't work on iOS devices and CocoonJS: the data string is generated well, but the server receives nothing (as if the phone wasn't sending anything)... However, "GET" calls do send data without any problem!
As the same code works fine for Android, I suppose it should have something to do with some Apple policies or this kind of stuff, but I can't figure out what can be happening... I have some headers' properties defined in the server script, as I had some problems relating CORS some days ago:
if (isset($_SERVER['HTTP_ORIGIN'])) {
header("Access-Control-Allow-Origin: {$_SERVER['HTTP_ORIGIN']}");
header('Access-Control-Allow-Credentials: true');
header('Access-Control-Max-Age: 86400');
}
I've asked around some forums and searched for some solutions, but I can't find anything useful for me... Any idea on what can be happening? Has someone found the same problem, maybe?
Thanks in advance for your time and effort! :)