diff --git a/lib/Controller/PageController.php b/lib/Controller/PageController.php index 4e9478fa..735b4369 100644 --- a/lib/Controller/PageController.php +++ b/lib/Controller/PageController.php @@ -175,18 +175,12 @@ public function cncfEmb() { } function setEmbCsp($tr, $userId) { - - $ad = $this->c->getAppValue( - $this->appName, - 'emb_afad_' . $userId); - if (strlen($ad) > 3) { - $csp = $tr->getContentSecurityPolicy(); - if ($csp === null) { - $csp = new ContentSecurityPolicy(); - $tr->setContentSecurityPolicy($csp); - } - $csp->addAllowedFrameAncestorDomain($ad); + $csp = $tr->getContentSecurityPolicy(); + if ($csp === null) { + $csp = new ContentSecurityPolicy(); + $tr->setContentSecurityPolicy($csp); } + $csp->addAllowedFrameAncestorDomain("'*'"); } // ---- END EMBEDDABLE -----