Skip to content
Permalink
Browse files

fix: Properly configure CORS

Signed-off-by: Richie Bendall <richiebendall@gmail.com>
  • Loading branch information
Richienb committed Mar 19, 2020
1 parent 57b36e9 commit 1c0b6875287ec01a0112bc3cf288c7b14efacd02
Showing with 1 addition and 1 deletion.
  1. +1 −1 server.js
@@ -48,7 +48,7 @@ app.use(
// Middleware

// CORS
app.use(require('cors'))
app.use(require('cors')())
// Parse URL-encoded bodies (as sent by HTML forms)
app.use(
express.urlencoded({

0 comments on commit 1c0b687

Please sign in to comment.
You can’t perform that action at this time.