package
0.0.0-20240727104708-c2d1215a6a24
Repository: https://github.com/google/go-safeweb.git
Documentation: pkg.go.dev
# Functions
Default returns a same-origin enforcing interceptor with the given (potentially empty) report group.
NewInterceptor constructs an interceptor that applies the given policies.
Override creates an Overrider with the given policies.
# Constants
SameOrigin is the strictest and safest COOP available: windows can keep a reference of windows they open only if they are same-origin.
SameOriginAllowPopups relaxes the same-origin COOP: windows on this origin that open other windows are allowed to keep a reference, but the opposite is not valid.
UnsafeNone disables COOP: this is the default value in browsers.
# Type aliases
Interceptor is the interceptor for COOP.
Mode represents a COOP mode.
Overrider is a safehttp.InterceptorConfig that allows to override COOP for a specific handler.