From 1cdd285b76c76f504e07e62b5861f1c8ce68d835 Mon Sep 17 00:00:00 2001 From: Sam Hurd Date: Mon, 20 Jul 2020 16:27:51 -0400 Subject: [PATCH 1/3] Add cors rule in request/response for most recent api versions --- .../preview/2020-06-01-preview/cosmos-db.json | 44 +++++++++++++++++++ .../CosmosDBDatabaseAccountCreateMax.json | 6 +++ .../stable/2020-04-01/cosmos-db.json | 44 +++++++++++++++++++ .../CosmosDBDatabaseAccountCreateMax.json | 10 ++++- 4 files changed, 102 insertions(+), 2 deletions(-) diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/cosmos-db.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/cosmos-db.json index 978944c453d6..59ec8dab5196 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/cosmos-db.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/cosmos-db.json @@ -5207,6 +5207,38 @@ "defaultConsistencyLevel" ] }, + "CorsPolicy": { + "type": "object", + "description": "The CORS policy for the Cosmos DB database account.", + "properties": { + "allowedOrigins": { + "description": "The origin domains that are permitted to make a request against the service via CORS.", + "type": "string" + }, + "allowedMethods": { + "description": "The methods (HTTP request verbs) that the origin domain may use for a CORS request.", + "type": "string" + }, + "allowedHeaders": { + "description": "The request headers that the origin domain may specify on the CORS request.", + "type": "string" + }, + "exposedHeaders": { + "description": "The response headers that may be sent in the response to the CORS request and exposed by the browser to the request issuer.", + "type": "string" + }, + "maxAgeInSeconds": { + "description": "The maximum amount time that a browser should cache the preflight OPTIONS request.", + "type": "integer", + "minimum": 1, + "maximum": 2147483647, + "format": "int64" + } + }, + "required": [ + "allowedOrigins" + ] + }, "DatabaseAccountGetProperties": { "description": "Properties for the database account.", "type": "object", @@ -5351,6 +5383,10 @@ "description": "The object representing the policy for taking backups on an account.", "type": "object", "$ref": "#/definitions/BackupPolicy" + }, + "cors": { + "description": "The CORS policy for the Cosmos DB database account.", + "$ref": "#/definitions/CorsPolicy" } } }, @@ -5447,6 +5483,10 @@ "description": "The object representing the policy for taking backups on an account.", "type": "object", "$ref": "#/definitions/BackupPolicy" + }, + "cors": { + "description": "The CORS policy for the Cosmos DB database account.", + "$ref": "#/definitions/CorsPolicy" } }, "required": [ @@ -5593,6 +5633,10 @@ "description": "The object representing the policy for taking backups on an account.", "type": "object", "$ref": "#/definitions/BackupPolicy" + }, + "cors": { + "description": "The CORS policy for the Cosmos DB database account.", + "$ref": "#/definitions/CorsPolicy" } } }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBDatabaseAccountCreateMax.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBDatabaseAccountCreateMax.json index 2197eae8a3fa..273af5f5f0ad 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBDatabaseAccountCreateMax.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBDatabaseAccountCreateMax.json @@ -55,6 +55,9 @@ "backupIntervalInMinutes": 240, "backupRetentionIntervalInHours": 720 } + }, + "cors": { + "allowedOrigins": "https://test" } } } @@ -158,6 +161,9 @@ "backupIntervalInMinutes": 240, "backupRetentionIntervalInHours": 720 } + }, + "cors": { + "allowedOrigins": "https://test" } }, "systemData": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/cosmos-db.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/cosmos-db.json index 6e73ccd40325..54cbad70a6bc 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/cosmos-db.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/cosmos-db.json @@ -5074,6 +5074,38 @@ "defaultConsistencyLevel" ] }, + "CorsPolicy": { + "type": "object", + "description": "The CORS policy for the Cosmos DB database account.", + "properties": { + "allowedOrigins": { + "description": "The origin domains that are permitted to make a request against the service via CORS.", + "type": "string" + }, + "allowedMethods": { + "description": "The methods (HTTP request verbs) that the origin domain may use for a CORS request.", + "type": "string" + }, + "allowedHeaders": { + "description": "The request headers that the origin domain may specify on the CORS request.", + "type": "string" + }, + "exposedHeaders": { + "description": "The response headers that may be sent in the response to the CORS request and exposed by the browser to the request issuer.", + "type": "string" + }, + "maxAgeInSeconds": { + "description": "The maximum amount time that a browser should cache the preflight OPTIONS request.", + "type": "integer", + "minimum": 1, + "maximum": 2147483647, + "format": "int64" + } + }, + "required": [ + "allowedOrigins" + ] + }, "DatabaseAccountGetProperties": { "description": "Properties for the database account.", "type": "object", @@ -5197,6 +5229,10 @@ "enableAnalyticalStorage": { "description": "Flag to indicate whether to enable storage analytics.", "type": "boolean" + }, + "cors": { + "description": "The CORS policy for the Cosmos DB database account.", + "$ref": "#/definitions/CorsPolicy" } } }, @@ -5281,6 +5317,10 @@ "enableAnalyticalStorage": { "description": "Flag to indicate whether to enable storage analytics.", "type": "boolean" + }, + "cors": { + "description": "The CORS policy for the Cosmos DB database account.", + "$ref": "#/definitions/CorsPolicy" } }, "required": [ @@ -5397,6 +5437,10 @@ "enableAnalyticalStorage": { "description": "Flag to indicate whether to enable storage analytics.", "type": "boolean" + }, + "cors": { + "description": "The CORS policy for the Cosmos DB database account.", + "$ref": "#/definitions/CorsPolicy" } } }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountCreateMax.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountCreateMax.json index de4497935071..3a9362e12837 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountCreateMax.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountCreateMax.json @@ -47,7 +47,10 @@ "apiProperties": { "serverVersion": "3.2" }, - "enableAnalyticalStorage": true + "enableAnalyticalStorage": true, + "cors": { + "allowedOrigins": "https://test" + } } } }, @@ -141,7 +144,10 @@ "apiProperties": { "serverVersion": "3.2" }, - "enableAnalyticalStorage": true + "enableAnalyticalStorage": true, + "cors": { + "allowedOrigins": "https://test" + } } } } From 69ac54779ae620fb1664287248736cfa68fd75f3 Mon Sep 17 00:00:00 2001 From: Sam Hurd Date: Tue, 28 Jul 2020 15:31:29 -0400 Subject: [PATCH 2/3] cors is an array and updated all examples to contain cors in response --- .../preview/2020-06-01-preview/cosmos-db.json | 15 ++++++++++++--- .../CosmosDBDatabaseAccountCreateMax.json | 12 ++++++++---- .../CosmosDBDatabaseAccountCreateMin.json | 1 + .../examples/CosmosDBDatabaseAccountGet.json | 1 + .../examples/CosmosDBDatabaseAccountList.json | 1 + ...osmosDBDatabaseAccountListByResourceGroup.json | 1 + .../examples/CosmosDBDatabaseAccountPatch.json | 1 + .../stable/2020-04-01/cosmos-db.json | 15 ++++++++++++--- .../CosmosDBDatabaseAccountCreateMax.json | 12 ++++++++---- .../CosmosDBDatabaseAccountCreateMin.json | 1 + .../examples/CosmosDBDatabaseAccountGet.json | 1 + .../examples/CosmosDBDatabaseAccountList.json | 1 + ...osmosDBDatabaseAccountListByResourceGroup.json | 1 + .../examples/CosmosDBDatabaseAccountPatch.json | 1 + 14 files changed, 50 insertions(+), 14 deletions(-) diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/cosmos-db.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/cosmos-db.json index 59ec8dab5196..9f2d5580be06 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/cosmos-db.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/cosmos-db.json @@ -5385,8 +5385,11 @@ "$ref": "#/definitions/BackupPolicy" }, "cors": { + "type": "array", "description": "The CORS policy for the Cosmos DB database account.", - "$ref": "#/definitions/CorsPolicy" + "items": { + "$ref": "#/definitions/CorsPolicy" + } } } }, @@ -5485,8 +5488,11 @@ "$ref": "#/definitions/BackupPolicy" }, "cors": { + "type": "array", "description": "The CORS policy for the Cosmos DB database account.", - "$ref": "#/definitions/CorsPolicy" + "items": { + "$ref": "#/definitions/CorsPolicy" + } } }, "required": [ @@ -5635,8 +5641,11 @@ "$ref": "#/definitions/BackupPolicy" }, "cors": { + "type": "array", "description": "The CORS policy for the Cosmos DB database account.", - "$ref": "#/definitions/CorsPolicy" + "items": { + "$ref": "#/definitions/CorsPolicy" + } } } }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBDatabaseAccountCreateMax.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBDatabaseAccountCreateMax.json index 273af5f5f0ad..82e7eb55784d 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBDatabaseAccountCreateMax.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBDatabaseAccountCreateMax.json @@ -56,9 +56,11 @@ "backupRetentionIntervalInHours": 720 } }, - "cors": { + "cors": [ + { "allowedOrigins": "https://test" - } + } + ] } } }, @@ -162,9 +164,11 @@ "backupRetentionIntervalInHours": 720 } }, - "cors": { + "cors": [ + { "allowedOrigins": "https://test" - } + } + ] }, "systemData": { "createdAt": "2020-06-12T22:05:09Z" diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBDatabaseAccountCreateMin.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBDatabaseAccountCreateMin.json index 3b69dcc403f0..6219541b7ca4 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBDatabaseAccountCreateMin.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBDatabaseAccountCreateMin.json @@ -72,6 +72,7 @@ "failoverPriority": 0 } ], + "cors": [], "enableFreeTier": false, "apiProperties": {}, "enableAnalyticalStorage": false, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBDatabaseAccountGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBDatabaseAccountGet.json index 92ae63e5ada1..6161ef424776 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBDatabaseAccountGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBDatabaseAccountGet.json @@ -75,6 +75,7 @@ } } ], + "cors": [], "enableFreeTier": false, "apiProperties": {}, "enableAnalyticalStorage": true, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBDatabaseAccountList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBDatabaseAccountList.json index f4c4cc0b1429..2e78845c0e93 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBDatabaseAccountList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBDatabaseAccountList.json @@ -73,6 +73,7 @@ } } ], + "cors": [], "enableFreeTier": false, "apiProperties": {}, "enableAnalyticalStorage": true, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBDatabaseAccountListByResourceGroup.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBDatabaseAccountListByResourceGroup.json index 65415c73b724..9a8d7e081c13 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBDatabaseAccountListByResourceGroup.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBDatabaseAccountListByResourceGroup.json @@ -60,6 +60,7 @@ "failoverPriority": 0 } ], + "cors": [], "enableFreeTier": false, "instanceId": "d9b26648-2f53-4541-b3d8-3044f4f9810d", "createMode": "Default", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBDatabaseAccountPatch.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBDatabaseAccountPatch.json index 9976e4e73f08..988548baaf7f 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBDatabaseAccountPatch.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBDatabaseAccountPatch.json @@ -106,6 +106,7 @@ "failoverPriority": 0 } ], + "cors": [], "virtualNetworkRules": [ { "id": "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/cosmos-db.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/cosmos-db.json index 54cbad70a6bc..bb20e1b27f21 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/cosmos-db.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/cosmos-db.json @@ -5231,8 +5231,11 @@ "type": "boolean" }, "cors": { + "type": "array", "description": "The CORS policy for the Cosmos DB database account.", - "$ref": "#/definitions/CorsPolicy" + "items": { + "$ref": "#/definitions/CorsPolicy" + } } } }, @@ -5319,8 +5322,11 @@ "type": "boolean" }, "cors": { + "type": "array", "description": "The CORS policy for the Cosmos DB database account.", - "$ref": "#/definitions/CorsPolicy" + "items": { + "$ref": "#/definitions/CorsPolicy" + } } }, "required": [ @@ -5439,8 +5445,11 @@ "type": "boolean" }, "cors": { + "type": "array", "description": "The CORS policy for the Cosmos DB database account.", - "$ref": "#/definitions/CorsPolicy" + "items": { + "$ref": "#/definitions/CorsPolicy" + } } } }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountCreateMax.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountCreateMax.json index 3a9362e12837..6d073aace5e9 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountCreateMax.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountCreateMax.json @@ -48,9 +48,11 @@ "serverVersion": "3.2" }, "enableAnalyticalStorage": true, - "cors": { + "cors": [ + { "allowedOrigins": "https://test" - } + } + ] } } }, @@ -145,9 +147,11 @@ "serverVersion": "3.2" }, "enableAnalyticalStorage": true, - "cors": { + "cors": [ + { "allowedOrigins": "https://test" - } + } + ] } } } diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountCreateMin.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountCreateMin.json index 6b0224bfd5e6..657a6f3669ed 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountCreateMin.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountCreateMin.json @@ -71,6 +71,7 @@ "failoverPriority": 0 } ], + "cors": [], "enableFreeTier": false, "apiProperties": {}, "enableAnalyticalStorage": false diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountGet.json index a9060dbe546d..6c313a7aaece 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountGet.json @@ -75,6 +75,7 @@ } } ], + "cors": [], "enableFreeTier": false, "apiProperties": {}, "enableAnalyticalStorage": true diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountList.json index d17099aa4b0e..8a2bebe6ddbf 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountList.json @@ -73,6 +73,7 @@ } } ], + "cors": [], "enableFreeTier": false, "apiProperties": {}, "enableAnalyticalStorage": true diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountListByResourceGroup.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountListByResourceGroup.json index 3e7ce126f613..909ed62bcfb2 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountListByResourceGroup.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountListByResourceGroup.json @@ -60,6 +60,7 @@ "failoverPriority": 0 } ], + "cors": [], "enableFreeTier": false } } diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountPatch.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountPatch.json index 4236c8ec8340..7b9052683a71 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountPatch.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountPatch.json @@ -119,6 +119,7 @@ } } ], + "cors": [], "enableFreeTier": false, "apiProperties": {}, "enableAnalyticalStorage": true From e8aebc08245d62ab9d937fdfe265183e0c88e570 Mon Sep 17 00:00:00 2001 From: Sam Hurd Date: Tue, 28 Jul 2020 15:37:23 -0400 Subject: [PATCH 3/3] ran prettier --- .../examples/CosmosDBDatabaseAccountCreateMax.json | 4 ++-- .../2020-04-01/examples/CosmosDBDatabaseAccountCreateMax.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBDatabaseAccountCreateMax.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBDatabaseAccountCreateMax.json index 82e7eb55784d..7857ad6e43d3 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBDatabaseAccountCreateMax.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2020-06-01-preview/examples/CosmosDBDatabaseAccountCreateMax.json @@ -58,7 +58,7 @@ }, "cors": [ { - "allowedOrigins": "https://test" + "allowedOrigins": "https://test" } ] } @@ -166,7 +166,7 @@ }, "cors": [ { - "allowedOrigins": "https://test" + "allowedOrigins": "https://test" } ] }, diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountCreateMax.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountCreateMax.json index 6d073aace5e9..bd2b1b5d84ec 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountCreateMax.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2020-04-01/examples/CosmosDBDatabaseAccountCreateMax.json @@ -50,7 +50,7 @@ "enableAnalyticalStorage": true, "cors": [ { - "allowedOrigins": "https://test" + "allowedOrigins": "https://test" } ] } @@ -149,7 +149,7 @@ "enableAnalyticalStorage": true, "cors": [ { - "allowedOrigins": "https://test" + "allowedOrigins": "https://test" } ] }