diff --git a/schemas/config/action.schema.json b/schemas/config/action.schema.json index 89ce7c3..834ee0c 100644 --- a/schemas/config/action.schema.json +++ b/schemas/config/action.schema.json @@ -46,6 +46,46 @@ } } } + }, + "cors": { + "type": "object", + "additionalProperties": false, + "properties": { + "merge": { + "type": "boolean" + }, + "allowOrigins": { + "type": "array", + "items": { + "type": "string" + } + }, + "allowCredentials": { + "type": "boolean" + }, + "allowHeaders": { + "type": "array", + "items": { + "type": "string" + } + }, + "allowMethods": { + "type": "array", + "items": { + "type": "string" + } + }, + "exposeHeaders": { + "type": "array", + "items": { + "type": "string" + } + }, + "maxAge": { + "type": "integer", + "minimum": 0 + } + } } }, "required": [ diff --git a/schemas/config/collection.schema.json b/schemas/config/collection.schema.json index 30b7d37..c331e0f 100644 --- a/schemas/config/collection.schema.json +++ b/schemas/config/collection.schema.json @@ -144,6 +144,46 @@ } } }, + "cors": { + "type": "object", + "additionalProperties": false, + "properties": { + "merge": { + "type": "boolean" + }, + "allowOrigins": { + "type": "array", + "items": { + "type": "string" + } + }, + "allowCredentials": { + "type": "boolean" + }, + "allowHeaders": { + "type": "array", + "items": { + "type": "string" + } + }, + "allowMethods": { + "type": "array", + "items": { + "type": "string" + } + }, + "exposeHeaders": { + "type": "array", + "items": { + "type": "string" + } + }, + "maxAge": { + "type": "integer", + "minimum": 0 + } + } + }, "queryLimits": { "type": "object", "additionalProperties": false,