cors

package
v0.0.0-...-ec3616b Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: 0BSD Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessControl

type AccessControl struct {
	AllowOrigin      string
	ExposeHeaders    string
	MaxAge           int
	AllowCredentials bool
	AllowMethods     string
	AllowHeaders     string
}

type Authenticator

type Authenticator interface {
	api.Auth[*http.Request]

	CrossOriginResourceSharing(*http.Request, api.Function) AccessControl
}

Jump to

Keyboard shortcuts

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