manelis Posted September 21, 2015 Share Posted September 21, 2015 Hello, I need to load a texture from a cross domain source (cloudfront). I have already seen that it must be done with the loader, however it gives a error anyway. After loading, the object is the following: flag: i _boundComplete: bound () _boundOnError: bound () _boundOnProgress: bound () _boundXdrOnTimeout: bound () _boundXhrOnAbort: bound () _boundXhrOnError: bound () _boundXhrOnLoad: bound () _dequeue: () _events: Object crossOrigin: "anonymous" data: img error: Error: Failed to load element using IMG at i.a.16.i._onError (xxxxxxxx) isAudio: false isDataUrl: false isImage: true isJson: false isVideo: false isXml: false loadType: 2 name: "flag" texture: i url: "xxxxxx" xhr: null xhrType: undefined __proto__: i Being xxxxxx the correct urls. Anyone knows why this happens? Thank you for the help. Quote Link to comment Share on other sites More sharing options...
coter Posted September 21, 2015 Share Posted September 21, 2015 On the server you need to add the domain to trusted. Read about CORS - https://en.wikipedia.org/wiki/Cross-origin_resource_sharing Dread Knight 1 Quote Link to comment Share on other sites More sharing options...
xerver Posted September 27, 2015 Share Posted September 27, 2015 Are you sure the error is that it is cross origin? Do you have an example that shows this error happening? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.