mrrscors

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CorsAdapter

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

func New

func New(opts Options) *CorsAdapter

func (*CorsAdapter) Middleware

func (c *CorsAdapter) Middleware(next http.Handler) http.Handler

type Options

type Options struct {
	AllowedOrigins   []string
	AllowedMethods   []string
	AllowedHeaders   []string
	ExposedHeaders   []string
	AllowCredentials bool
	Logger           mrlog.Logger
}

Jump to

Keyboard shortcuts

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