Skip to content

Commit

Permalink
Fix backend origin uri
Browse files Browse the repository at this point in the history
  • Loading branch information
VenEleni committed Aug 26, 2024
1 parent 107af09 commit bfb512e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const db = require("./config/connection");
const dotenv = require("dotenv");
const app = express();
const PORT = process.env.PORT || 8080;
const FRONTEND_URI = process.env.FRONTEND_URI;
const FRONTEND_URI_ORIGIN = process.env.FRONTEND_URI;
const userRoutes = require("./routes/userRoute");
const authRoutes = require('./routes/authRoute')
const productRoutes= require('./routes/productRoute')
Expand All @@ -21,7 +21,7 @@ require("./passport");

app.use(express.json());
app.use(cors({
origin: FRONTEND_URI,
origin: FRONTEND_URI_ORIGIN,
credentials: true
}));

Expand Down

0 comments on commit bfb512e

Please sign in to comment.