Allow access origin policy while loading resource from the server

hi i am loading resources from my server…
unfortunately the server is responding with this error
has been blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin' header is present on the requested resource

cc.loader.load({id : ‘http://server/img.png’,type : ‘png’},function(err,data){
cc.log(data);
});

It’s blocked by CORS

You can permit CORS on your server, sometime it can’t solve the problem, then you may need to transfer the file indirectly with your game server.