Versions in this module Expand all Collapse all v0 v0.2.0 Aug 6, 2018 Changes in this version + var DefaultConfig = &Config + func ShouldUseForwardedProto() bool + type Config struct + CSP bool + CSPBody string + CSPReportOnly bool + CSPReportOnlyBody string + CSPReportOnlyReportURI string + CSPReportURI string + ContentTypeOptions bool + FrameOptions bool + FrameOptionsPolicy FramePolicy + HSTS bool + HSTSIncludeSubdomains bool + HSTSMaxAge time.Duration + HSTSPreload bool + HTTPSRedirect bool + HTTPSUseForwardedProto bool + Next http.Handler + PermitClearLoopback bool + XSSProtection bool + XSSProtectionBlock bool + func Handler(h http.Handler) *Config + func (c *Config) ServeHTTP(w http.ResponseWriter, r *http.Request) + type FramePolicy string + const Deny + const SameOrigin + func AllowFrom(url string) FramePolicy