Skip to content

Commit

Permalink
Merge pull request #197 from AltCamp/fix/feedback
Browse files Browse the repository at this point in the history
fix: set allowed CORS origins
  • Loading branch information
tobisupreme committed Jul 3, 2023
2 parents 096e207 + 623db15 commit 432f322
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ const appConfig = (app) => {

app.use(
cors({
origin: CLIENT_URLS,
origin: Array.from(CLIENT_URLS),
})
);
//eslint-disable-next-line

app.use(morgan('combined', { stream: logger.stream }));
app.use(express.json({ limit: '50mb' }));
app.use(express.urlencoded({ limit: '50mb', extended: false }));
Expand All @@ -49,7 +49,6 @@ const appConfig = (app) => {
app.use(errorHandler);
};

//Initialize app
appConfig(app);

module.exports = app;

0 comments on commit 432f322

Please sign in to comment.