Jump to content

asset loader - Failed to load element (cross domain)


manelis
 Share

Recommended Posts

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:

 

  1. flag: i
    1. _boundComplete: bound ()
    2. _boundOnError: bound ()
    3. _boundOnProgress: bound ()
    4. _boundXdrOnTimeout: bound ()
    5. _boundXhrOnAbort: bound ()
    6. _boundXhrOnError: bound ()
    7. _boundXhrOnLoad: bound ()
    8. _dequeue: ()
    9. _events: Object
    10. crossOrigin: "anonymous"
    11. data: img
    12. error: Error: Failed to load element using IMG at i.a.16.i._onError (xxxxxxxx)
    13. isAudio: false
    14. isDataUrl: false
    15. isImage: true
    16. isJson: false
    17. isVideo: false
    18. isXml: false
    19. loadType: 2
    20. name: "flag"
    21. texture: i
    22. url: "xxxxxx"
    23. xhr: null
    24. xhrType: undefined
    25. __proto__: i

 

Being xxxxxx the correct urls.

 

Anyone knows why this happens? 

 

Thank you for the help.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...