Documentation ¶
Overview ¶
Package internalunsafeframing is used internally to override Framing protections.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllowList ¶
type AllowList struct { // ReportOnly sets the policy to Report-Only instead of enforcing. ReportOnly bool // Hostnames is a list of origins (with potential wildcards) that will be able to frame the site. // Wildcards must follow the CSP specification: // https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/frame-ancestors. Hostnames []string }
AllowList selectively allows framing.
Please note that on older browsers this is equivalent to Disable.
Directories ¶
Path | Synopsis |
---|---|
Package unsafeframing can be used to disable Framing protections on specific handler registration.
|
Package unsafeframing can be used to disable Framing protections on specific handler registration. |
Package unsafeframingfortests can be used to disable Framing protections on specific handler registration in tests.
|
Package unsafeframingfortests can be used to disable Framing protections on specific handler registration in tests. |
Click to show internal directories.
Click to hide internal directories.