Skip to content

Commit

Permalink
docs: improve readability on if-else statement
Browse files Browse the repository at this point in the history
closes #140
  • Loading branch information
daniel08s authored and dougwilson committed Jun 22, 2018
1 parent 8a1daf7 commit b42b8b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -157,7 +157,7 @@ var corsOptionsDelegate = function (req, callback) {
var corsOptions;
if (whitelist.indexOf(req.header('Origin')) !== -1) {
corsOptions = { origin: true } // reflect (enable) the requested origin in the CORS response
}else{
} else {
corsOptions = { origin: false } // disable CORS for this request
}
callback(null, corsOptions) // callback expects two parameters: error and options
Expand Down

0 comments on commit b42b8b3

Please sign in to comment.