Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configs ¶
type Configs struct { Enabled bool AllowOrigin string AllowMethods string AllowHeaders string PreflightMaxAge int64 AllowCredentials bool ExposeHeaders string }
func DefaultCORSConfigs ¶
func DefaultCORSConfigs() *Configs
func (*Configs) AddCORSHeaders ¶
Add CORS headers to the response if the request contains Origin header
Click to show internal directories.
Click to hide internal directories.