Skip to content

Commit

Permalink
Disabled CORS check.
Browse files Browse the repository at this point in the history
  • Loading branch information
oktay-sen committed Mar 12, 2019
1 parent e918a56 commit 331fea9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ app.use(
if (whitelist.indexOf(origin) > -1) {
callback(null, true)
} else {
callback(new Error('Not allowed by CORS.'))
console.log(origin, 'is not allowed by CORS. Bypassing anyway.')
callback(null, true)
}
},
credentials: true
Expand Down

0 comments on commit 331fea9

Please sign in to comment.