mirror of
https://github.com/samsonjs/mit-license.git
synced 2026-04-27 15:07:42 +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
|
// Middleware
|
||||||
|
|
||||||
// CORS
|
// CORS
|
||||||
app.use(require('cors'))
|
app.use(require('cors')())
|
||||||
// Parse URL-encoded bodies (as sent by HTML forms)
|
// Parse URL-encoded bodies (as sent by HTML forms)
|
||||||
app.use(
|
app.use(
|
||||||
express.urlencoded({
|
express.urlencoded({
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue