Skip to content

Commit

Permalink
Merge pull request #41 from GormFrank/master
Browse files Browse the repository at this point in the history
APPS-33 - Put cors env var after dot env
  • Loading branch information
duboisp authored May 5, 2020
2 parents c8f29bc + 9e681f1 commit 8f27c62
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,14 @@ const MongoClient = require('mongodb').MongoClient;

const processEnv = process.env;

const _corsSettings = JSON.parse(processEnv.cors || '{"optionSucessStatus":200}');

/**
* Load environment variables from .env file, where API keys and passwords are configured.
*/
dotenv.config({
path: '.env'
});

const _corsSettings = JSON.parse(processEnv.cors || '{"optionSucessStatus":200}'); // Parse CORS settings

//
// HTTP auth
Expand Down

0 comments on commit 8f27c62

Please sign in to comment.