XFrameOptions

Builder for the X-Frame-Options HTTP response header.

Usage

Source

XFrameOptions()

Default header value: SAMEORIGIN

Notes

* Consider CSP frame-ancestors for richer framing controls. * This header is only processed when sent as an HTTP response header.

Resources: - https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/X-Frame-Options - https://owasp.org/www-project-secure-headers/#x-frame-options

Parameter Attributes

header_name: str
_value: str = HeaderDefaultValue.X_FRAME_OPTIONS.value