Skip to content

Commit

Permalink
Add object-src CSP directive
Browse files Browse the repository at this point in the history
  • Loading branch information
Isaac Connor committed Feb 20, 2023
1 parent 3406d15 commit 4637eaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/includes/functions.php
Expand Up @@ -55,7 +55,7 @@ function CSPHeaders($view, $nonce) {
// fall through
default:
// Enforce script-src on pages where inline scripts and event handlers have been fixed.
header("Content-Security-Policy: script-src 'self' 'nonce-$nonce' $additionalScriptSrc".
header("Content-Security-Policy: script-src 'self' object-src 'self' 'nonce-$nonce' $additionalScriptSrc".
(ZM_CSP_REPORT_URI ? '; report-uri '.ZM_CSP_REPORT_URI : '' )
);
break;
Expand Down

0 comments on commit 4637eaf

Please sign in to comment.