Help for debuging javascript/php

Job ID: 31268081

Budget: $10 – $30 USD

We have a bug.

We call a php page (which give a json data) with javascript from page (ebanking page) but now we get error CORS policy.


We call this script :

_______________________
<script>
jQuery.getJSON("https://www.bodysport.ch/cresus-syc.php?action=compte&v="+Math.random()+"&filtrecompte=CH6309000000128671646", function(json){
jQuery.each(json, function(i, obj){

});


});
</script>
_______________________

And we have this error, print screen here : https://gyazo.com/f49d3e6a5fc413e4b7a49685b78c3ac3

So we think is missing some header in the PHP file that we called (https://www.bodysport.ch/cresus-syc.php?action=compte&v=2222&filtrecompte=CH6309000000128671646). This is actually header :

_______________________
header("content-type: application/json");
header('Access-Control-Allow-Headers: X-CSRF-Token');
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Credentials: true');
header('Access-Control-Max-Age: 60');
header('Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS');
_______________________

So we are looking someone who can help us, not well CORS policy
Related categories: PHP JavaScript AJAX jQuery / Prototype