Documentation
¶
Overview ¶
Package cors/wrapper/gin provides gin.HandlerFunc to handle CORS related requests as a wrapper of github.com/rs/cors handler.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllowAll ¶
func AllowAll() gin.HandlerFunc
AllowAll creates a new CORS Gin middleware with permissive configuration allowing all origins with all standard methods with any header and credentials.
func Default ¶
func Default() gin.HandlerFunc
Default creates a new CORS Gin middleware with default options.
func New ¶
func New(options Options) gin.HandlerFunc
New creates a new CORS Gin middleware with the provided options.
Types ¶
Click to show internal directories.
Click to hide internal directories.