Documentation
¶
Overview ¶
Package cors implements CORS middleware for the framework.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCorsFactory ¶
func NewCorsFactory() middleware.Factory
NewCorsFactory creates a new CORS middleware factory
func NewGorillaCors ¶
NewGorillaCors creates a new CORS handler for Gorilla/Mux or standard HTTP servers
func NewKratosCors ¶
func NewKratosCors(cfg *corsv1.Cors) transhttp.FilterFunc
NewKratosCors creates a new CORS handler for Kratos HTTP servers
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.