cors

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller interface {
	CorsDisabled() bool
	Domain() string
}

type Cors

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

func New

func New(log loggers.Logger, adminApp Controller, cache *cache.Cache) *Cors

func (*Cors) Handle

func (s *Cors) Handle(next http.HandlerFunc) http.HandlerFunc

Handle wraps a HandlerFunc to respond OPTIONS requests properly

Jump to

Keyboard shortcuts

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