WSO2 · Schema

APICorsConfiguration

CORS configuration for the API

API ManagementGatewaysOpen SourceAPI LifecycleGraphQLSOAPREST

Properties

Name Type Description
corsConfigurationEnabled boolean
accessControlAllowOrigins array
accessControlAllowCredentials boolean
accessControlAllowHeaders array
accessControlAllowMethods array
View JSON Schema on GitHub

JSON Schema

publisher-api-api-cors-configuration-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/wso2/refs/heads/main/json-schema/publisher-api-api-cors-configuration-schema.json",
  "title": "APICorsConfiguration",
  "description": "CORS configuration for the API\n",
  "type": "object",
  "properties": {
    "corsConfigurationEnabled": {
      "type": "boolean",
      "default": false
    },
    "accessControlAllowOrigins": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "accessControlAllowCredentials": {
      "type": "boolean",
      "default": false
    },
    "accessControlAllowHeaders": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "accessControlAllowMethods": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  }
}