Skip to content

Commit

Permalink
feat(config): display cors at launch ✨
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreBrisorgueil committed Sep 26, 2019
1 parent 72db56d commit 8758edc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/defaults/development.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ module.exports = {
xssProtection: true,
},
cors: {
origin: ['http://localhost:4200'],
origin: [],
credentials: true,
},
// Data filter whitelist & Blacklist
Expand Down
1 change: 1 addition & 0 deletions lib/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ const logConfiguration = () => {
console.log(chalk.green(`Environment: ${process.env.NODE_ENV ? process.env.NODE_ENV : 'develoment'}`));
console.log(chalk.green(`Server: ${server}`));
console.log(chalk.green(`Database: ${config.db.uri}`));
if (config.cors.origin.length > 0) console.log(chalk.green(`Cors: ${config.cors.origin}`));
};

// Boot up the server
Expand Down

0 comments on commit 8758edc

Please sign in to comment.