Skip to content

Commit 487128e

Browse files
committed
Add CORS section
1 parent af5f319 commit 487128e

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

articles/digital-twins/how-to-use-3d-scenes-studio.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,22 @@ To use 3D Scenes Studio, you'll need the following resources:
3131
* A private container in the storage account. For instructions, see [Create a container](../storage/blobs/storage-quickstart-blobs-portal.md#create-a-container).
3232
* Take note of the *name* of your storage container to use later.
3333
* *Storage Blob Data Owner* or *Storage Blob Data Contributor* access to your storage resources. You can grant required roles at either the storage account level or the container level. For instructions and more information about permissions to Azure storage, see [Assign an Azure role](../storage/blobs/assign-azure-role-data-access.md?tabs=portal#assign-an-azure-role).
34+
* Configure CORS for your storage account (see details in the following sub-section).
3435

35-
You should also configure [CORS](/rest/api/storageservices/cross-origin-resource-sharing--cors--support-for-the-azure-storage-services) for your storage account, so that 3D Scenes Studio will be able to access your storage container. You can use the following [Azure CLI](/cli/azure/what-is-azure-cli) command to set the minimum required methods, origins, and headers. The command contains one placeholder for the name of your storage account.
36+
### Configure CORS
37+
38+
You'll need to configure [CORS](/rest/api/storageservices/cross-origin-resource-sharing--cors--support-for-the-azure-storage-services) for your storage account, so that 3D Scenes Studio will be able to access your storage container.
39+
40+
Here are the minimum required CORS headers:
41+
* Authorization
42+
* Content-Type
43+
* Content-Length
44+
* x-ms-version
45+
* x-ms-blob-type
46+
* x-ms-copy-source
47+
* x-ms-requires-sync
48+
49+
Below is the [Azure CLI](/cli/azure/what-is-azure-cli) command that will set the minimum required methods, origins, and headers for CORS in your storage account. The command contains one placeholder for the name of your storage account.
3650

3751
```azurecli
3852
az storage cors add --services b --methods GET OPTIONS POST PUT --origins https://explorer.digitaltwins.azure.net --allowed-headers Authorization Content-Type Content-Length x-ms-version x-ms-blob-type x-ms-copy-source x-ms-requires-sync --account-name <your-storage-account>

0 commit comments

Comments
 (0)