dsman Posted July 1, 2015 Share Posted July 1, 2015 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. Quote Link to comment Share on other sites More sharing options...
davrous Posted July 1, 2015 Share Posted July 1, 2015 You need to enable CORS on the Azure Blob Storage. Solution is described in my article: http://blogs.msdn.com/b/davrous/archive/2014/05/22/why-and-how-we-migrated-babylonjs-com-to-microsoft-azure.aspx This is what I've done for BabylonJS.com David Quote Link to comment Share on other sites More sharing options...
dsman Posted July 1, 2015 Author Share Posted July 1, 2015 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 ? Quote Link to comment Share on other sites More sharing options...
davrous Posted July 1, 2015 Share Posted July 1, 2015 No, unfortunately, I don't have it. :-( You need to rebuild it using the various sample codes available :http://blogs.msdn.com/b/windowsazurestorage/archive/2014/02/03/windows-azure-storage-introducing-cors.aspx Quote Link to comment Share on other sites More sharing options...
davrous Posted July 1, 2015 Share Posted July 1, 2015 Check also the tools mentionned here:http://stackoverflow.com/questions/28608859/how-to-configure-cors-setting-for-blob-storage-in-windows-azure Quote Link to comment Share on other sites More sharing options...
dsman Posted July 1, 2015 Author Share Posted July 1, 2015 I solved it using trial version of Azure Mamangement Studio by Cerebrata 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.