Skip to content

Commit 57ec359

Browse files
authored
All: switch CSP headers from report-only to enforced
Ref jquery/infrastructure-puppet#54 Closes gh-11
1 parent 5df1144 commit 57ec359

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jquery/functions.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ function twentyeleven_content_security_policy() {
314314
}
315315

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

320320
add_action( 'send_headers', 'twentyeleven_content_security_policy' );

0 commit comments

Comments
 (0)