I try to use http://steamcommunity.com/inventory/XXXXXXXXXX/753/6 to fetch JSON items.
I can't put the url in my $.getJson because there is a CORS « Access-Control-Allow-Origin » error.
How can i bypass that if i don't want to allow CORS
I read somewhere that it's possible to use PHP file_get_contents to redirect the json file.
Steamcommunity doesn't work with JSONP
var exercice = {
modules: {}
};
exercice.modules.ajax = (function () {
return {
    recupererJson: function () {
         initial= $.getJSON('proxy.php',function(data){
        })
            initial.done(function(donnes){
                var i = 0;
                $.each(donnes.descriptions,function(key,value){
                        $('tbody').append("<tr>");
                        $('tbody').append("<td>"+value.name+"</td>");
                        $('tbody').append("<td><img src=http://cdn.steamcommunity.com/economy/image/"+value.icon_url+" alt ="+value.name+"/></td>");
                        $('tbody').append("</tr>");
                    });
                    });
    },
    init: function () {
        exercice.modules.ajax.recupererJson();
    }
}})();
$(document).ready(function () {
exercice.modules.ajax.init();
});
Can someone help me ?
 
    