|
|
@@ -870,8 +870,8 @@ class BxDolTemplate extends BxDolFactory implements iBxDolSingleton
|
|
|
*/
|
|
|
function getEmbed($sContent)
|
|
|
{
|
|
|
- header('Content-Security-Policy: frame-ancestors ' . getParam('sys_csp_frame_ancestors')) ;
|
|
|
if ($sContent == ''){
|
|
|
+ header('Content-Security-Policy: frame-ancestors ' . getParam('sys_csp_frame_ancestors')) ;
|
|
|
$this->displayPageNotFound('', BX_PAGE_EMBED);
|
|
|
exit;
|
|
|
}
|
|
|
@@ -3315,6 +3315,9 @@ class BxDolTemplate extends BxDolFactory implements iBxDolSingleton
|
|
|
|
|
|
header( 'Content-type: text/html; charset=utf-8' );
|
|
|
header( 'X-Frame-Options: sameorigin' );
|
|
|
+ if (BX_PAGE_EMBED == $oTemplate->getPageNameIndex())
|
|
|
+ header('Content-Security-Policy: frame-ancestors ' . getParam('sys_csp_frame_ancestors'));
|
|
|
+
|
|
|
echo $oTemplate->parsePageByName('page_' . $oTemplate->getPageNameIndex() . '.html', $oTemplate->getPageContent());
|
|
|
}
|
|
|
}
|