Using gltf file in playground

I am trying to load a GLTF file from Azure blob Storage using SceneLoader.importMeshAsync() in a playground
but I get an error
Access to XMLHttpRequest at ‘’ from origin ‘’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.

How do I configure the CORS in the Azure storage container to enable the GLB file to be downloaded by the SceneLoader?

Press “Load 3” to trigger the error here:

Azure Storage Explorer CORS dialog:

This isn’t really a Babylon.js question, but maybe someone knows.

@RaananW might know ?

You need to configure your host to respond to CORS correctly. The CORS settings you show should work, but i can only assume you asked it because it doesn’t… There might be an issue with the origin though - try removing the trailing slash, as this is done using string comparison and not any other complex mechanism.

Otherwise, I would suggest setting the origin to * and seeing if that works as expected.