Documentation ¶
Overview ¶
Package cors provides a default struct to hold the cors configuration and also a http middleware.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Meta ¶
type Meta struct { Domains []string `mapstructure:"domains" bson:"domains" json:"domains"` Methods []string `mapstructure:"methods" bson:"methods" json:"methods"` RequestHeaders []string `mapstructure:"request_headers" bson:"request_headers" json:"request_headers"` ExposedHeaders []string `mapstructure:"exposed_headers" bson:"exposed_headers" json:"exposed_headers"` Enabled bool `bson:"enabled" json:"enabled"` }
Meta defines config for CORS routes
Click to show internal directories.
Click to hide internal directories.