I´m having a problem with my game as I need some images to be loaded from a CDN and I´m not being able to implement this.
The CDN is working fine, if I create a .html file in the same folder the game is, I can load that images withouth any kind of problem, but into de Phaser game they´re not being loaded, so at least the good thing is that the CDN allows to load them, I just need to know how.
This is exactly the error I have: localhost/:1 Access to XMLHttpRequest at 'https://cdn.************.png?v=1.0' from origin 'http://localhost' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
If you can fix this, just let me know how much it would be and I´ll pay you instantly if we have the right price
I would say also check that your cross origin allowing cdn server also allows http origins as well, but you already said that it works within an html file.
Cross origin requests requests has two sides to be configured properly: Server needs to allow other origins access (with certain desired HTTP Methods specified in Access-Control-Allow-Methods) and client request code needs to tell it is a cross origin request.
Have you made sure that the resource url handled correctly? There s a query string at the end of it as v=1.0. Does cdn handles this properly and send the Access-Control-Allow-Origin header with the request?
@samme, so this guy told me the request actually needs some info to load the images properly. Can I DM you to give you this info and see if you can make it work? (paid, of course)