handler

package
v0.0.0-...-2cf4783 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddNoSniff

func AddNoSniff(next http.Handler) http.Handler

AddNoSniff returns handler to add nosniff as X-Content-Type-Options response header.

func DenyNoLHttpRequest

func DenyNoLHttpRequest(next http.Handler, statusCode int, msg string) http.Handler

DenyNoLHttpRequest terminates ServeHTTP chain to avoid CSRF. If request header does not contains X-Requested-With" header and the value is not XMLHttpRequest, HTTP session terminates.

Types

This section is empty.

Jump to

Keyboard shortcuts

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