Documentation ¶
Index ¶
Constants ¶
View Source
const (
AppName = "cors"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CORS ¶
type CORS struct { ioc.ObjectImpl Enabled bool `json:"enabled" yaml:"enabled"` AllowedHeaders []string `json:"allowedHeaders" yaml:"allowedHeaders"` AllowOrigins []string `json:"allowOrigins" yaml:"allowOrigins"` AllowedMethods []string `json:"allowedMethods" yaml:"allowedMethods"` ExposeHeaders []string `json:"exposeHeaders" yaml:"exposeHeaders"` AllowCookies bool `json:"allowCookies" yaml:"allowCookies"` MaxAge int `json:"maxAge" yaml:"maxAge"` // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.