Skip to content

Commit ce82600

Browse files
committed
Update CSP for Full reCAPTCHA Support
1 parent 1b2f930 commit ce82600

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

nginx.conf

+4-3
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,12 @@ http {
1717
add_header Referrer-Policy "strict-origin-when-cross-origin" always;
1818
add_header Content-Security-Policy "
1919
default-src 'self';
20-
script-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.googletagmanager.com https://www.google-analytics.com;
20+
script-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.googletagmanager.com https://www.google-analytics.com https://www.recaptcha.net https://www.gstatic.com;
2121
style-src 'self' 'unsafe-inline' https://fonts.googleapis.com;
2222
font-src 'self' https://fonts.gstatic.com;
23-
connect-src 'self' https://www.google-analytics.com;
24-
img-src 'self' https://orcid.org https://info.orcid.org;" always;
23+
connect-src 'self' https://www.google-analytics.com https://www.recaptcha.net https://www.gstatic.com;
24+
img-src 'self' https://orcid.org https://info.orcid.org https://www.gstatic.com https://www.google.com/recaptcha/;
25+
frame-src 'self' https://www.google.com/recaptcha/ https://www.recaptcha.net/recaptcha/ https://recaptcha.google.com;" always;
2526

2627
# Basic nginx optimizations
2728
sendfile on;

0 commit comments

Comments
 (0)