mirror of
https://github.com/samsonjs/mit-license.git
synced 2026-03-25 09:25:49 +00:00
fix: Properly configure CORS
Signed-off-by: Richie Bendall <richiebendall@gmail.com>
This commit is contained in:
parent
57b36e93a7
commit
1c0b687528
1 changed files with 1 additions and 1 deletions
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Reference in a new issue