Sentry добавлен в допустимый список connect-src для CSP

This commit is contained in:
ErickSkrauch 2018-01-04 02:03:35 +03:00
parent 03ac317a1f
commit 927116db5f

View File

@ -330,7 +330,7 @@ if (isCspEnabled) {
],
'img-src': ['\'self\'', 'data:', 'www.google-analytics.com'],
'font-src': ['\'self\'', 'data:'],
'connect-src': isProduction ? ['\'self\''] : ['\'self\'', 'ws://localhost:8080'],
'connect-src': ['\'self\'', 'https://sentry.ely.by'].concat(isProduction ? [] : ['ws://localhost:8080']),
'frame-src': ['https://www.google.com/recaptcha/'],
'report-uri': 'https://sentry.ely.by/api/2/csp-report/?sentry_key=088e7718236a4f91937a81fb319a93f6',
}));