CSP block legacy HTML element types such as <object>, <embed>, and <applet> on Raw actions

This commit is contained in:
the-djmaze 2026-10-22 18:04:40 +02:00
parent ceb9f68ded
commit 61ebcb6ed4

View file

@ -339,7 +339,7 @@ class ServiceActions
$sMethodName = 'Raw'.$sAction; $sMethodName = 'Raw'.$sAction;
if (\method_exists($this->oActions, $sMethodName)) { if (\method_exists($this->oActions, $sMethodName)) {
\header('X-Raw-Action: '.$sMethodName); \header('X-Raw-Action: '.$sMethodName);
\header('Content-Security-Policy: script-src \'none\'; child-src \'none\''); \header('Content-Security-Policy: script-src \'none\'; child-src \'none\'; object-src \'none\'');
$sRawError = ''; $sRawError = '';
$this->oActions->SetActionParams(array( $this->oActions->SetActionParams(array(