mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-05 00:18:46 +02:00
N°3416 XFrame-Options header is now set using a config parameter, defaults to SAMEORIGIN
Also adds an indirection (\WebPage::add_xframe_options) to set header
This commit is contained in:
@@ -961,7 +961,7 @@ try
|
||||
if (!empty($sClass) && ($sClass != 'InlineImage') && !empty($id) && !empty($sField))
|
||||
{
|
||||
$oKPI = new ExecutionKPI();
|
||||
$oPage->add_header('X-Frame-Options:'); // resets header, see N°3416
|
||||
$oPage->add_xframe_options(''); // resets header, see N°3416
|
||||
ormDocument::DownloadDocument($oPage, $sClass, $id, $sField, 'inline');
|
||||
$oKPI->ComputeAndReport('Data fetch and format');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user