cors

package
v2.26.1 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cors

func Cors(opts ...Option) middleware.Middleware

Types

type Option

type Option func(*options)

func AllowedHeaders added in v2.15.4

func AllowedHeaders(headers ...string) Option

func AllowedMethods

func AllowedMethods(methods ...string) Option

func AllowedOrigins

func AllowedOrigins(origins ...string) Option

func AppendAllowedHeaders added in v2.15.4

func AppendAllowedHeaders(headers ...string) Option

func AppendAllowedMethods

func AppendAllowedMethods(methods ...string) Option

func AppendAllowedOrigins

func AppendAllowedOrigins(origins ...string) Option

func AppendPath

func AppendPath(paths ...string) Option

func Path

func Path(paths ...string) Option

Jump to

Keyboard shortcuts

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