httpheaders

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CSPHTTPHeader                 = "Content-Security-Policy"
	HSTSHTTPHeader                = "Strict-Transport-Security"
	CORSOriginHTTPHeader          = "Access-Control-Allow-Origin"
	XContentTypeOptionsHTTPHeader = "X-Content-Type-Options"
	XFrameOptionsHTTPHeader       = "X-Frame-Options"
)
View Source
const (
	HTTPHeadersScanID   = "misconfiguration.http_headers"
	HTTPHeadersScanName = "HTTP Headers Misconfiguration"
)

Variables

This section is empty.

Functions

func CheckCSPFrameAncestors

func CheckCSPFrameAncestors(cspHeader string) bool

func ScanHandler

func ScanHandler(operation *request.Operation, securityScheme auth.SecurityScheme) (*report.Report, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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