Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Defaults DefaultMaxAge = 600 // DefaultHTTPMethods is the default list of HTTP methods that are allowed. // Array of strings GET, POST, OPTIONS DefaultHTTPMethods = "GET, POST, OPTIONS" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CORS ¶
type CORS struct { Path string `json:"path,omitempty"` Origins []string `json:"origins,omitempty"` Origin string `json:"origin,omitempty"` OriginRegexps []string `json:"origin_regexps,omitempty"` HTTPMethods string `json:"http_methods,omitempty"` AllowCredentials *bool `json:"allow_credentials,omitempty"` MaxAge *int `json:"max_age,omitempty"` // contains filtered or unexported fields }
func (CORS) CaddyModule ¶
func (CORS) CaddyModule() caddy.ModuleInfo
CaddyModule returns the Caddy module information.
func (*CORS) UnmarshalCaddyfile ¶
UnmarshalCaddyfile implements caddyfile.Unmarshaler.
Click to show internal directories.
Click to hide internal directories.