I unchecked "preload" from an image in my project. I load it later using:
this.app.loader.getHandler("texture").crossOrigin = "anonymous";
var asset = this.app.assets.find("..image..name..here..");
In the published version of my project I get this error:
Access to Image at 'https://s3-eu-west-1.amazonaws.com/apps.playcanvas.com/....redacted.....' from origin 'https://playcanv.as' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://playcanv.as' is therefore not allowed access.
I would think i should be able to load an asset in my project from the playcanvas hosted s3 bucket shouldn't I?
Sorry I can't link the project here it is private and in production at the moment.