mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-12-25 06:30:00 +05:30
Update CSP config to support recaptcha.net domain
This commit is contained in:
parent
1ce44c8430
commit
83c72e795d
@ -326,13 +326,17 @@ if (isCspEnabled) {
|
||||
'\'nonce-edge-must-die\'',
|
||||
'\'unsafe-inline\'',
|
||||
'https://www.google-analytics.com',
|
||||
'https://www.google.com/recaptcha/',
|
||||
'https://recaptcha.net/recaptcha/',
|
||||
'https://www.gstatic.com/recaptcha/',
|
||||
'https://www.gstatic.cn/recaptcha/',
|
||||
],
|
||||
'img-src': ['\'self\'', 'data:', 'www.google-analytics.com'],
|
||||
'font-src': ['\'self\'', 'data:'],
|
||||
'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',
|
||||
}));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user