qxCors

package
v0.1.32 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CustomMiddlewareFn added in v0.1.32

func CustomMiddlewareFn(allowMethodsInput []string, allowHeadersInput []string, exposeHeadersInput []string, maxAgeHeaderVal int64) func(header http.Header)

func CustomNotAllowedFn added in v0.1.32

func CustomNotAllowedFn() func(http.ResponseWriter)

Types

type Cors added in v0.1.32

type Cors struct {
	AllowedOrigins  []string `json:",default=['http://localhost:8888']"`
	AllowMethods    []string `json:",default=['HEAD','GET','POST']"`
	AllowHeaders    []string `` /* 138-byte string literal not displayed */
	ExposeHeaders   []string `json:",default=['Content-Length','Access-Control-Allow-Origin','Access-Control-Allow-Headers']"`
	MaxAgeHeaderVal int64    `json:",default=86400"`
}

Jump to

Keyboard shortcuts

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