cors

package
v0.14.5 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2021 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CORS

type CORS struct {
	// contains filtered or unexported fields
}

func New

func New(config Config) *CORS

func (*CORS) Handle

func (c *CORS) Handle(reqCtx *fasthttp.RequestCtx) bool

type Config

type Config struct {
	AllowedHeaders []string
	AllowedMethods []string
	AllowedOrigins []string
}

Jump to

Keyboard shortcuts

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