WSO2 · JSON Structure

Publisher Api Api Cors Configuration Structure

CORS configuration for the API

Type: object Properties: 5
API ManagementGatewaysOpen SourceAPI LifecycleGraphQLSOAPREST

APICorsConfiguration is a JSON Structure definition published by WSO2, describing 5 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

corsConfigurationEnabled accessControlAllowOrigins accessControlAllowCredentials accessControlAllowHeaders accessControlAllowMethods

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/wso2/refs/heads/main/json-structure/publisher-api-api-cors-configuration-structure.json",
  "name": "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"
      }
    }
  }
}