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:
Pierre Goiffon
2020-12-02 15:44:58 +01:00
parent 539fa43503
commit 35d77ff642

View File

@@ -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');
}