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); csp.directives.connectSrc.push(config.sentry_host);
} }
if ( if (
config.base_url.test(/^https:\/\/.*\.dev\.lcip\.org$/) || /^https:\/\/.*\.dev\.lcip\.org$/.test(config.base_url) ||
config.base_url.test( /^https:\/\/.*\.send\.nonprod\.cloudops\.mozgcp\.net$/.test(
/^https:\/\/.*\.send\.nonprod\.cloudops\.mozgcp\.net$/ config.base_url
) )
) { ) {
csp.directives.connectSrc.push('https://*.dev.lcip.org'); csp.directives.connectSrc.push('https://*.dev.lcip.org');