Discover Packages
github.com/dairyo/golang-utils
http
handler
package
Version:
v0.0.0-...-2cf4783
Opens a new window with list of versions in this module.
Published: Dec 16, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
AddNoSniff returns handler to add nosniff as X-Content-Type-Options response header.
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.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.