middlewares

package
v0.0.0-...-c511dfe Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2020 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cors

func Cors(next http.Handler, allowedDomain string, port int) http.Handler

Cors enables CORS Request on server (for development purposes)

func GetFullHostname

func GetFullHostname(hostname string, port int) string

GetFullHostname returns the full hostname of the server

func NoCache

func NoCache(next http.Handler) http.Handler

NoCache disable caching

func WebSecurity

func WebSecurity(next http.Handler, source string, allowEvalInlineScript bool) http.Handler

WebSecurity adds good practices security headers on http responses

Types

This section is empty.

Jump to

Keyboard shortcuts

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