cors

package
v0.1.55 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Default

func Default() znet.HandlerFunc

func New added in v0.1.55

func New(conf *Config) znet.HandlerFunc

Types

type Config added in v0.1.55

type Config struct {
	// Domains whitelist domain name
	Domains []string
}

Config cors configuration

Jump to

Keyboard shortcuts

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