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

Whitelist subdomains for cors list #4258

Merged
merged 1 commit into from Nov 17, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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