Versions in this module Expand all Collapse all v1 v1.1.2 Nov 25, 2026 v1.1.1 Nov 25, 2026 Changes in this version + func AllowedHosts(bindHost, port string, extra []string) map[string]struct + func BearerToken(r *http.Request) (string, bool) + func IsLoopbackBindAddr(bind string) bool + func IsLoopbackHost(host string) bool + func OriginAllowed(origin, host string, allowed map[string]struct{}) bool + func OriginSet(origins []string) map[string]struct + func SecurityHeaders() func(http.Handler) http.Handler + func ValidBearer(r *http.Request, token string) bool + func ValidateHost(allowed map[string]struct{}) func(http.Handler) http.Handler