Skip to content

Commit

Permalink
Update README to fix incorrect example
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenp committed Feb 19, 2016
1 parent 999af0f commit 9c0c6a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ var whitelist = ['http://example1.com', 'http://example2.com'];
var corsOptions = {
origin: function(origin, callback){
var originIsWhitelisted = whitelist.indexOf(origin) !== -1;
callback(null, originIsWhitelisted);
callback(originIsWhitelisted ? null : 'Bad Request', originIsWhitelisted);
}
};

Expand Down

0 comments on commit 9c0c6a3

Please sign in to comment.