Skip to content

Commit

Permalink
All: switch to enforced CSP header
Browse files Browse the repository at this point in the history
  • Loading branch information
timmywil committed Dec 16, 2024
1 parent 12053c7 commit bbbc1f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion themes/jquery/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ function jq_content_security_policy() {
}

header( 'Reporting-Endpoints: csp-endpoint="' . $report_url . '"' );
header( 'Content-Security-Policy-Report-Only: ' . $policy_string );
header( 'Content-Security-Policy: ' . $policy_string );
}

add_action( 'send_headers', 'jq_content_security_policy' );

0 comments on commit bbbc1f4

Please sign in to comment.