middleware

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2020 License: MIT Imports: 3 Imported by: 50

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CSRF added in v1.3.3

func CSRF() func(*fiber.Ctx)

CSRF :

func Cors

func Cors(origin ...string) func(*fiber.Ctx)

Cors : Enable cross-origin resource sharing (CORS) with various options.

func Helmet

func Helmet(opt ...*HelmetOptions) func(*fiber.Ctx)

Helmet : Helps secure your apps by setting various HTTP headers.

func Limiter added in v1.3.3

func Limiter() func(*fiber.Ctx)

Limiter :

func Logger added in v1.3.3

func Logger() func(*fiber.Ctx)

Logger : Simple logger

func Session added in v1.3.3

func Session() func(*fiber.Ctx)

Session :

Types

type HelmetOptions added in v1.3.3

type HelmetOptions struct {
	ContentSecurityPolicy string
	CrossDomain           string
	DNSPrefetchControl    string // default
	ExpectCt              string
	FeaturePolicy         string
	FrameGuard            string // default
	Hpkp                  string
	Hsts                  string // default
	IeNoOpen              string // default
	NoCache               string
	NoSniff               string // default
	ReferrerPolicy        string
	XSSFilter             string // default
}

HelmetOptions https://github.com/helmetjs/helmet#how-it-works

Jump to

Keyboard shortcuts

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