diff --git a/backend/app.js b/backend/app.js index f289994..e40af8c 100644 --- a/backend/app.js +++ b/backend/app.js @@ -23,7 +23,7 @@ const { socketIOServerInit } = require("./socket"); app.get("/health-check", (req, res, next) => { res.status(200).send("OK"); }); -app.use(cors({ origin: `http://${process.env.CORS_ORIGIN}:5173`, credentials: true })); +app.use(cors({ origin: process.env.CORS_ALLOWED_HOST, credentials: true })); app.use(bodyParser.json()); app.use((req, res, next) => { // res.setHeader("Access-Control-Allow-Origin", "http://localhost:5173");