Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cors ¶
type Cors struct { // Directive Options AllowedOrigins []string `json:"allowed_origins,omitempty"` OverrideExistingCors bool `json:"override_existing_cors,omitempty"` AllowedMethods []string `json:"allowed_methods,omitempty"` AllowCredentials bool `json:"allow_credentials,omitempty"` MaxAge int `json:"max_age,omitempty"` AllowedHeaders []string `json:"allowed_headers,omitempty"` ExposedHeaders []string `json:"exposed_headers,omitempty"` // contains filtered or unexported fields }
Define the Cors middleware config
func (Cors) CaddyModule ¶
func (Cors) CaddyModule() caddy.ModuleInfo
Click to show internal directories.
Click to hide internal directories.