middlewares

package
v0.0.0-...-226ad4c Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: AGPL-3.0 Imports: 8 Imported by: 1

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, CORS are accepted from the allowed domain, its parent domain, and all subdomains

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