cors

package
v2.21.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 9, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cors

func Cors(allowOrigins []string) gin.HandlerFunc

func CustomCors added in v2.9.0

func CustomCors(allowOrigins []string, headerHandler func(writer http.ResponseWriter)) gin.HandlerFunc

func DefaultCorsHeaders added in v2.9.0

func DefaultCorsHeaders(writer http.ResponseWriter)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL