changes added
This commit is contained in:
+1
-1
@@ -23,7 +23,7 @@ const { socketIOServerInit } = require("./socket");
|
|||||||
app.get("/health-check", (req, res, next) => {
|
app.get("/health-check", (req, res, next) => {
|
||||||
res.status(200).send("OK");
|
res.status(200).send("OK");
|
||||||
});
|
});
|
||||||
app.use(cors({ origin: `http://${CORS_ORIGIN}:5173`, credentials: true }));
|
app.use(cors({ origin: `http://${process.env.CORS_ORIGIN}:5173`, credentials: true }));
|
||||||
app.use(bodyParser.json());
|
app.use(bodyParser.json());
|
||||||
app.use((req, res, next) => {
|
app.use((req, res, next) => {
|
||||||
// res.setHeader("Access-Control-Allow-Origin", "http://localhost:5173");
|
// res.setHeader("Access-Control-Allow-Origin", "http://localhost:5173");
|
||||||
|
|||||||
Reference in New Issue
Block a user