Skip to content

Commit

Permalink
fixed silly regex bug on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
dannycoates committed Jul 29, 2020
1 parent 3c27656 commit 2f503c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 2f503c9

Please sign in to comment.