diff --git a/server/README.md b/server/README.md index 75f4438..ec4020a 100644 --- a/server/README.md +++ b/server/README.md @@ -70,6 +70,12 @@ database -MongoDB "node" : ">=14.16.0" }, ``` + enable cors + ```dotnetcli + npm i cors + const cors = require("cors"); + app.use(cors()); + ``` add "start": "node server.js" to package.json git add . git commit -m "change xxx"