Skip to content
This repository has been archived by the owner on Sep 15, 2024. It is now read-only.

Commit

Permalink
fix: split correct env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Dwigoric committed Nov 14, 2023
1 parent ca41cbd commit 483865e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const app = express()
// Configure CORS
const whitelist = []
if (!process.env.FRONTEND_URLS) console.warn('FRONTEND_URLS not set, allowing all origins')
else whitelist.push(...process.env.FRONTEND_URL.split(','))
else whitelist.push(...process.env.FRONTEND_URLS.split(','))
app.use(
cors({
origin: (origin, callback) => {
Expand Down

0 comments on commit 483865e

Please sign in to comment.