Update CSP config to support recaptcha.net domain

This commit is contained in:
ErickSkrauch 2018-03-17 18:21:53 +03:00
parent 1ce44c8430
commit 83c72e795d

View File

@ -326,13 +326,17 @@ if (isCspEnabled) {
'\'nonce-edge-must-die\'', '\'nonce-edge-must-die\'',
'\'unsafe-inline\'', '\'unsafe-inline\'',
'https://www.google-analytics.com', 'https://www.google-analytics.com',
'https://www.google.com/recaptcha/', 'https://recaptcha.net/recaptcha/',
'https://www.gstatic.com/recaptcha/', 'https://www.gstatic.com/recaptcha/',
'https://www.gstatic.cn/recaptcha/',
], ],
'img-src': ['\'self\'', 'data:', 'www.google-analytics.com'], 'img-src': ['\'self\'', 'data:', 'www.google-analytics.com'],
'font-src': ['\'self\'', 'data:'], 'font-src': ['\'self\'', 'data:'],
'connect-src': ['\'self\'', 'https://sentry.ely.by'].concat(isProduction ? [] : ['ws://localhost:8080']), 'connect-src': ['\'self\'', 'https://sentry.ely.by'].concat(isProduction ? [] : ['ws://localhost:8080']),
'frame-src': ['https://www.google.com/recaptcha/'], 'frame-src': [
'https://www.google.com/recaptcha/',
'https://recaptcha.net/recaptcha/',
],
'report-uri': 'https://sentry.ely.by/api/2/csp-report/?sentry_key=088e7718236a4f91937a81fb319a93f6', 'report-uri': 'https://sentry.ely.by/api/2/csp-report/?sentry_key=088e7718236a4f91937a81fb319a93f6',
})); }));
} }