mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
N°3416 Fix DocumentFile preview not working anymore
Was caused by X-Frame-Options http header added with N°3317
This commit is contained in:
@@ -961,6 +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
|
||||
ormDocument::DownloadDocument($oPage, $sClass, $id, $sField, 'inline');
|
||||
$oKPI->ComputeAndReport('Data fetch and format');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user