Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct ($xFrameOpt='SAMEORIGIN') | |
![]() | |
canApply () | |
getName () | |
getValue () | |
Data Fields | |
const | DEPLOYMENT_CONFIG_X_FRAME_OPT = 'x-frame-options' |
const | BACKEND_X_FRAME_OPT = 'SAMEORIGIN' |
Protected Attributes | |
$headerName = Http::HEADER_X_FRAME_OPT | |
$headerValue | |
![]() | |
$headerName = '' | |
$headerValue = '' | |
Adds an X-FRAME-OPTIONS header to HTTP responses to safeguard against click-jacking.
Definition at line 13 of file XFrameOptions.php.
__construct | ( | $xFrameOpt = 'SAMEORIGIN' | ) |
string | $xFrameOpt |
Definition at line 38 of file XFrameOptions.php.
|
protected |
Definition at line 26 of file XFrameOptions.php.
|
protected |
Definition at line 33 of file XFrameOptions.php.
const BACKEND_X_FRAME_OPT = 'SAMEORIGIN' |
Always send SAMEORIGIN in backend x-frame-options header
Definition at line 19 of file XFrameOptions.php.
const DEPLOYMENT_CONFIG_X_FRAME_OPT = 'x-frame-options' |
Deployment config key for frontend x-frame-options header value
Definition at line 16 of file XFrameOptions.php.