Skip to content

Commit 8912a4f

Browse files
committed
Use strict-dynamic
1 parent b1b674a commit 8912a4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/recaptcha-content-security-policy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"Content-Security-Policy: "
4646
."default-src 'none'; " // By default we will deny everything
4747

48-
."script-src 'nonce-".$nonce."'; " // nonce allowing the reCAPTCHA library and other third-party scripts to be included
48+
."script-src 'nonce-".$nonce."' 'strict-dynamic'; " // nonce allowing the reCAPTCHA library and other third-party scripts to be included
4949

5050
."img-src https://www.gstatic.com/recaptcha/ https://www.google-analytics.com; " // allow images from these URLS
5151
."frame-src https://www.google.com/; " // allow frames from this URL

0 commit comments

Comments
 (0)