Jump to content

CORS error in loading model from Azure Blob Storage.


dsman
 Share

Recommended Posts

I think CORS error can be fixed by sending some headers in http request. But the problem is this http request is done by babylon and I think I don't have control over that. I am simply passing the url in BABYLON.SceneLoader.ImportMesh()  function. 

 

The URL is of Azure blob url which has public access. If I copy the URL into browser, I am able to download the babylon file normally. So Azure blob public access permission are there. 

 

It is giving this error in console. 

No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost' is therefore not allowed access. The response had HTTP status code 404.

Link to comment
Share on other sites

I see. So its not that we have to set some headers. Its Azure blob storage from where the specific headers should come . 

 

Your blog refers to this blog post http://blog.cynapta.com/2013/12/cynapta-azure-cors-helper-free-tool-to-manage-cors-rules-for-windows-azure-blob-storage/

 

Which in turn refers to one desktop utility  using which we can enable CORS on azure . That desktop utility download link is not working now. ( https://cynapta.blob.core.windows.net/public-downloads/Cynapta.CORSHelper.Source.zip )

 

If you have that utility would you mind sharing ?

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...