mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-11-10 18:12:10 +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\'',
|
'\'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',
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user