diff --git a/docs/notes/nodejs/express.md b/docs/notes/nodejs/express.md index 55eaa6945acd594cfce3a898e19b750eaa6700e4..7df0293f8a8730d7fb69b8a77876aee0d63a2333 100644 --- a/docs/notes/nodejs/express.md +++ b/docs/notes/nodejs/express.md @@ -250,7 +250,7 @@ app.use(express.urlencoded({ extended: false })) - 安装中间件:`npm install cors` - 导入中间件:`const cors = require('cors')` -- 配置中间件:`app.use(cors)` +- 配置中间件:`app.use(cors())` ### CORS