middlewares

package
v0.0.0-...-6a5da2a Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2021 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cors

func Cors(next http.Handler, allowedOrigin string) 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