diff --git a/.circleci/config.yml b/.circleci/config.yml index 4dd81b9207..5ca4199330 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -350,7 +350,6 @@ workflows: branches: only: - PROD-4183 - - PROD-4372 - changelog # This is alternate dev env for parallel testing - "build-test": diff --git a/config/default.js b/config/default.js index a5a369b466..d50de2aec7 100644 --- a/config/default.js +++ b/config/default.js @@ -25,7 +25,6 @@ module.exports = { /* CDN configuration. */ CDN: { PUBLIC: 'https://d1aahxkjiobka8.cloudfront.net', - ACCESS_CONTROL_ALLOW_ORIGIN: '*.topcoder-dev.com', }, /* Time in MS to wait before refreshing challenge details after register diff --git a/config/production.js b/config/production.js index 844a62fb54..c372930853 100644 --- a/config/production.js +++ b/config/production.js @@ -10,7 +10,6 @@ module.exports = { }, CDN: { PUBLIC: 'https://community-app-cdn.topcoder.com', - ACCESS_CONTROL_ALLOW_ORIGIN: '*.topcoder.com', }, COOKIES: { MAXAGE: 7, diff --git a/src/server/routes/cdn.js b/src/server/routes/cdn.js index d14133afae..61460e024b 100644 --- a/src/server/routes/cdn.js +++ b/src/server/routes/cdn.js @@ -30,7 +30,7 @@ const url = path.resolve(__dirname, '../../../build'); /* Sets Access-Control-Allow-Origin header to avoid CORS error. * TODO: Replace the wildcard value by an appropriate origin filtering. */ router.use('/public/static-assets', (req, res, next) => { - res.set('Access-Control-Allow-Origin', `${config.CDN.ACCESS_CONTROL_ALLOW_ORIGIN}`); + res.set('Access-Control-Allow-Origin', '*'); next(); }, express.static(url),