Skip to content

Commit

Permalink
Correct the syntax of the CSP
Browse files Browse the repository at this point in the history
  • Loading branch information
Isaac Connor committed Feb 23, 2023
1 parent aeb8292 commit 57bf25d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/includes/functions.php
Original file line number Diff line number Diff line change
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' object-src 'self' 'nonce-$nonce' $additionalScriptSrc".
header("Content-Security-Policy: object-src 'self'; script-src 'self' 'nonce-$nonce' $additionalScriptSrc".
(ZM_CSP_REPORT_URI ? '; report-uri '.ZM_CSP_REPORT_URI : '' )
);
break;
Expand Down

0 comments on commit 57bf25d

Please sign in to comment.