middlewares

package
v0.0.0-...-24f997d Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

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