Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(config ...Config) core.HandlerFunc
New returns a side-effect-free CORS middleware.
func NewWithApp ¶ added in v3.1.28
func NewWithApp(app *core.Core, config ...Config) core.HandlerFunc
NewWithApp constructs CORS middleware and registers a legacy catch-all preflight route. Deprecated: use app.Use(cors.New(config...)).
Types ¶
Click to show internal directories.
Click to hide internal directories.