Skip to content
This repository has been archived by the owner on Oct 11, 2022. It is now read-only.

Commit

Permalink
Merge pull request #4258 from withspectrum/whitelist-cors-subdomains
Browse files Browse the repository at this point in the history
Whitelist subdomains for cors list
  • Loading branch information
brianlovin committed Nov 17, 2018
2 parents d6eb891 + 392433a commit 651fdd3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion shared/middlewares/cors.js
Expand Up @@ -6,7 +6,10 @@ export const corsOptions = {
process.env.NODE_ENV === 'production' && !process.env.FORCE_DEV
? [
'https://spectrum.chat',
/\.spectrum\.chat$/,
'https://alpha.spectrum.chat',
'https://admin.spectrum.chat',
'https://hyperion.workers.spectrum.chat',
'https://hyperion.alpha.spectrum.chat',
process.env.NOW_URL,
].filter(Boolean)
: [/localhost/],
Expand Down

0 comments on commit 651fdd3

Please sign in to comment.