Okay, I edited my question to show where I am at : I have a javascript test code :
$.ajax({
url: 'http://127.0.0.1/sgbd/web/bgg_talk.php',
type: 'GET',
dataType: 'text/xml',
success: function() { alert("Success"); },
error: function() { alert("Failed!"); }
});
And a PHP code running on the same server :
<?php
$xmlStringContents = file_get_contents('http://www.boardgamegeek.com/xmlapi/search?search=Carcassonne');
header("Access-Control-Allow-Origin: *");
header("Content-Type: text/xml");
echo($xmlStringContents);
?>
When I execute the PHP script I get the good XML page. But when I execute the JS, I still get "Failed!".
Could someone tell me what is wrong ? Thanks!