cors

package module
v0.0.0-...-97a865c Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: GPL-3.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(opts ...Option) *libCors.Cors

NewHandler generate a cors.Cors object using Option parameter

Types

type Option

type Option func(*option)

func LocalEnvironment

func LocalEnvironment() Option

LocalEnvironment enable AllowAll CORS for local development

func WithAllowedDomains

func WithAllowedDomains(domains ...string) Option

WithAllowedDomains set the domains to be allowed

Jump to

Keyboard shortcuts

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