HEX
Server: Apache/2.4.65 (Ubuntu)
System: Linux ielts-store-v2 6.8.0-1036-gcp #38~22.04.1-Ubuntu SMP Thu Aug 14 01:19:18 UTC 2025 x86_64
User: root (0)
PHP: 7.2.34-54+ubuntu20.04.1+deb.sury.org+1
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
Upload Files
File: //snap/google-cloud-cli/396/lib/googlecloudsdk/schemas/networkservices/v1alpha1/CORSPolicy.yaml
$schema: "http://json-schema.org/draft-06/schema#"

title: networkservices v1alpha1 CORSPolicy export schema
description: A gcloud export/import command YAML validation schema.
type: object
required:
- maxAge
additionalProperties: false
properties:
  COMMENT:
    type: object
    description: User specified info ignored by gcloud import.
    additionalProperties: false
    properties:
      template-id:
        type: string
      region:
        type: string
      description:
        type: string
      date:
        type: string
      version:
        type: string
  UNKNOWN:
    type: array
    description: Unknown API fields that cannot be imported.
    items:
      type: string
  allowCredentials:
    description: |-
      In response to a preflight request, setting this to `true` indicates that
      the actual request can include user credentials. This translates to the
      `Access-Control-Allow-Credentials` response header.
    type: boolean
  allowHeaders:
    description: |-
      The content for the `Access-Control-Allow-Headers` response header. You
      can specify up to 25 headers to include in the `Access-Control-Allow-
      Headers` header.
    type: array
    items:
      type: string
  allowMethods:
    description: |-
      The content for the `Access-Control-Allow-Methods` response header.
      You can specify up to five allowed methods.
    type: array
    items:
      type: string
  allowOrigins:
    description: |-
      A list of origins that are allowed to do CORS requests. This
      translates to the `Access-Control-Allow-Origin` response header.
      You can specify up to 25 allowed origins.
    type: array
    items:
      type: string
  disabled:
    description: |-
      If `true`, specifies that the CORS policy is disabled. The
      default value is `false`, which indicates that the CORS policy
      is in effect.
    type: boolean
  exposeHeaders:
    description: |-
      The content for the Access-Control-Expose-Headers response
      header. You can specify up to 25 headers to expose in the
      `Access-Control-Expose-Headers` header.
    type: array
    items:
      type: string
  maxAge:
    description: |-
      Specifies how long results of a preflight request can be
      cached by a client in seconds. Note that many browser
      clients enforce a maximum TTL of 600s (10 minutes). The
      following limitations apply: - Setting the value to `-1`
      forces a pre-flight check for all requests (not
      recommended) - A maximum TTL of `86400s` can be set;
      however, some clients might force pre-flight checks at a
      more regular interval. This translates to the `Access-
      Control-Max-Age` header.
    type: string