Skip to content

Commit 7e5f6ff

Browse files
committed
MAGETWO-43510: x-frame-options missing from setup
- using framework to add header
1 parent f5a24f1 commit 7e5f6ff

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

setup/index.php

-2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,4 @@
2828
$handler = new \Magento\Framework\App\ErrorHandler();
2929
set_error_handler([$handler, 'handler']);
3030

31-
header('X-Frame-Options: SAMEORIGIN');
32-
3331
\Zend\Mvc\Application::init(require __DIR__ . '/config/application.config.php')->run();

setup/src/Magento/Setup/Module.php

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ public function onBootstrap(EventInterface $e)
4949
$headers->addHeaderLine('Cache-Control', 'no-cache, no-store, must-revalidate');
5050
$headers->addHeaderLine('Pragma', 'no-cache');
5151
$headers->addHeaderLine('Expires', '1970-01-01');
52+
$headers->addHeaderLine('X-Frame-Options: SAMEORIGIN');
5253
}
5354
}
5455
}

0 commit comments

Comments
 (0)