From 2923a958f016012d3afec7a593f3a90640ed2998 Mon Sep 17 00:00:00 2001 From: suchanglin <18795397123@163.com> Date: Mon, 28 Mar 2022 10:53:28 +0000 Subject: [PATCH] update docs/notes/nodejs/express.md. --- docs/notes/nodejs/express.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/notes/nodejs/express.md b/docs/notes/nodejs/express.md index 55eaa69..7df0293 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 -- Gitee