fixed silly regex bug on startup

This commit is contained in:
Danny Coates 2020-07-29 08:49:07 -07:00
parent 3c27656444
commit 2f503c91e4
No known key found for this signature in database
GPG Key ID: 4C442633C62E00CB
1 changed files with 3 additions and 3 deletions

View File

@ -61,9 +61,9 @@ module.exports = function(app) {
csp.directives.connectSrc.push(config.sentry_host);
}
if (
config.base_url.test(/^https:\/\/.*\.dev\.lcip\.org$/) ||
config.base_url.test(
/^https:\/\/.*\.send\.nonprod\.cloudops\.mozgcp\.net$/
/^https:\/\/.*\.dev\.lcip\.org$/.test(config.base_url) ||
/^https:\/\/.*\.send\.nonprod\.cloudops\.mozgcp\.net$/.test(
config.base_url
)
) {
csp.directives.connectSrc.push('https://*.dev.lcip.org');