# Cors error when trying to load texture from Azure Blob Storage

**URL:** <https://forum.babylonjs.com/t/cors-error-when-trying-to-load-texture-from-azure-blob-storage/22024>\
**Category:** Questions\
**Created:** [June 30, 2021, 12:31pm UTC](https://forum.babylonjs.com/t/cors-error-when-trying-to-load-texture-from-azure-blob-storage/22024 "2021-06-30T12:31:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hamid\_Nawaz](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/hamid_nawaz/32/16255_2.png) [@Hamid\_Nawaz](https://forum.babylonjs.com/u/Hamid_Nawaz)\
**Post date:** [June 30, 2021, 12:31pm UTC](https://forum.babylonjs.com/t/cors-error-when-trying-to-load-texture-from-azure-blob-storage/22024/1 "2021-06-30T12:31:37Z")

</div>

I am trying to load a texture in my scene from azure storage with public access. You can view this playground to view the cors error.  
[Playground](https://playground.babylonjs.com/#LXZPJK#1361)

If I paste the link in browser address bar or use the same link as an img src in html it is working correctly. The only time it give me the error is when I am loading it in babylon as a texture.  
On line 18 you will see I am trying to load an image as a texture from azure storage but it gives me this error.

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/3/4/347651b81e79cf0a581d7e4e68ac6ad700a7e809.png)

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [June 30, 2021, 3:56pm UTC](https://forum.babylonjs.com/t/cors-error-when-trying-to-load-texture-from-azure-blob-storage/22024/2 "2021-06-30T15:56:56Z")

</div>

You forgot a h, I am seeing in the error ttps:// 🙂

---

<div class="post-metadata">

**Author:** ![Hamid\_Nawaz](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/hamid_nawaz/32/16255_2.png) [@Hamid\_Nawaz](https://forum.babylonjs.com/u/Hamid_Nawaz)\
**Post date:** [June 30, 2021, 5:05pm UTC](https://forum.babylonjs.com/t/cors-error-when-trying-to-load-texture-from-azure-blob-storage/22024/3 "2021-06-30T17:05:51Z")

</div>

Yeah sorry I forgot to add it when I took the screenshot but if you see in the playground the url is correct but I still get the cors error.  
New screenshot:

![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/c/4/c49da25701a8b6932037dd5c260bdd48a05eed59.png)

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [June 30, 2021, 5:50pm UTC](https://forum.babylonjs.com/t/cors-error-when-trying-to-load-texture-from-azure-blob-storage/22024/4 "2021-06-30T17:50:35Z")

</div>

You d need to enable cors on your storage [Cross-Origin Resource Sharing (CORS) support for Azure Storage | Microsoft Docs](https://docs.microsoft.com/en-us/rest/api/storageservices/cross-origin-resource-sharing--cors--support-for-the-azure-storage-services)

Let me know if that helps
