mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-04 04:51:16 +08:00
cors update
This commit is contained in:
parent
40cce1e54c
commit
85504136f5
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ const PORT = process.env.PORT || 5005;
|
|||
const app = express();
|
||||
app.use(express.urlencoded({ extended: true }));
|
||||
app.use(express.json());
|
||||
app.use(cors());
|
||||
app.use(cors({ origin: true }));
|
||||
|
||||
const userRouter = require("./api/routes/user");
|
||||
app.use("/user", userRouter);
|
||||
|
|
Loading…
Reference in a new issue