internalunsafecsp

package
v0.0.0-...-f115076 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package internalunsafecsp is used internally to override CSP.

Index

Constants

This section is empty.

Variables

View Source
var RandReader = rand.Reader

RandReader is a source of random.

Functions

This section is empty.

Types

type DisableStrict

type DisableStrict struct {
	// SkipReports completely disables Strict CSP.
	SkipReports bool
}

DisableStrict switches Strict CSP to report-only.

type DisableTrustedTypes

type DisableTrustedTypes struct {
	// SkipReports completely disables TT.
	SkipReports bool
}

DisableTrustedTypes switches TT to report-only.

Directories

Path Synopsis
Package unsafecspfortests can be used to disable CSP on specific handler registration in tests.
Package unsafecspfortests can be used to disable CSP on specific handler registration in tests.
Package unsafestrictcsp can be used to disable Strict CSP protections on specific handler registration.
Package unsafestrictcsp can be used to disable Strict CSP protections on specific handler registration.
Package unsafetrustedtypes can be used to disable Trusted Types protections on specific handler registration.
Package unsafetrustedtypes can be used to disable Trusted Types protections on specific handler registration.

Jump to

Keyboard shortcuts

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