From 2f503c91e42579406f703e843af43fd27faeb1ab Mon Sep 17 00:00:00 2001 From: Danny Coates Date: Wed, 29 Jul 2020 08:49:07 -0700 Subject: [PATCH] fixed silly regex bug on startup --- server/routes/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/routes/index.js b/server/routes/index.js index ff31f233..f0cc10d2 100644 --- a/server/routes/index.js +++ b/server/routes/index.js @@ -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');