Microsoft Azure · Schema

CorsRule

CORS rule for the Blob service.

API ManagementCloudCloud ComputingEnterpriseInfrastructure as a ServicePlatform as a ServiceT1

Properties

Name Type Description
AllowedOrigins string Comma-separated list of origin domains that are allowed via CORS.
AllowedMethods string Comma-separated list of HTTP methods that are allowed. Options are DELETE, GET, HEAD, MERGE, POST, OPTIONS, PUT.
AllowedHeaders string Comma-separated list of headers allowed to be part of the cross-origin request.
ExposedHeaders string Comma-separated list of response headers to expose to CORS clients.
MaxAgeInSeconds integer The maximum amount of time in seconds that a browser should cache the preflight OPTIONS request.
View JSON Schema on GitHub

JSON Schema

microsoft-azure-corsrule-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/CorsRule",
  "title": "CorsRule",
  "type": "object",
  "description": "CORS rule for the Blob service.",
  "properties": {
    "AllowedOrigins": {
      "type": "string",
      "description": "Comma-separated list of origin domains that are allowed via CORS.",
      "example": "example_value"
    },
    "AllowedMethods": {
      "type": "string",
      "description": "Comma-separated list of HTTP methods that are allowed. Options are DELETE, GET, HEAD, MERGE, POST, OPTIONS, PUT.",
      "example": "example_value"
    },
    "AllowedHeaders": {
      "type": "string",
      "description": "Comma-separated list of headers allowed to be part of the cross-origin request.",
      "example": "example_value"
    },
    "ExposedHeaders": {
      "type": "string",
      "description": "Comma-separated list of response headers to expose to CORS clients.",
      "example": "example_value"
    },
    "MaxAgeInSeconds": {
      "type": "integer",
      "minimum": 0,
      "description": "The maximum amount of time in seconds that a browser should cache the preflight OPTIONS request.",
      "example": 10
    }
  },
  "required": [
    "AllowedOrigins",
    "AllowedMethods",
    "AllowedHeaders",
    "ExposedHeaders",
    "MaxAgeInSeconds"
  ]
}