Skip to content

Commit a0b497a

Browse files
authored
Merge pull request #47582 from Tyriar/patch-2
Fix CORS json example
2 parents a416d00 + 1369430 commit a0b497a

File tree

1 file changed

+15
-17
lines changed

1 file changed

+15
-17
lines changed

articles/cosmos-db/how-to-configure-cross-origin-resource-sharing.md

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -37,23 +37,21 @@ To enable CORS by using a Resource Manager template, add the “cors” section
3737

3838
```json
3939
{
40-
{
41-
"type": "Microsoft.DocumentDB/databaseAccounts",
42-
"name": "[variables('accountName')]",
43-
"apiVersion": "2019-08-01",
44-
"location": "[parameters('location')]",
45-
"kind": "GlobalDocumentDB",
46-
"properties": {
47-
"consistencyPolicy": "[variables('consistencyPolicy')[parameters('defaultConsistencyLevel')]]",
48-
"locations": "[variables('locations')]",
49-
"databaseAccountOfferType": "Standard",
50-
"cors": [
51-
{
52-
"allowedOrigins": "*"
53-
}
54-
]
55-
}
56-
}
40+
"type": "Microsoft.DocumentDB/databaseAccounts",
41+
"name": "[variables('accountName')]",
42+
"apiVersion": "2019-08-01",
43+
"location": "[parameters('location')]",
44+
"kind": "GlobalDocumentDB",
45+
"properties": {
46+
"consistencyPolicy": "[variables('consistencyPolicy')[parameters('defaultConsistencyLevel')]]",
47+
"locations": "[variables('locations')]",
48+
"databaseAccountOfferType": "Standard",
49+
"cors": [
50+
{
51+
"allowedOrigins": "*"
52+
}
53+
]
54+
}
5755
}
5856
```
5957

0 commit comments

Comments
 (0)