Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

cors #86

Merged
merged 1 commit into from
Mar 10, 2024
Merged

cors #86

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion server/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const { notFound, errorHandler } = require('./middlewares/errorMiddlewares')

const userRoute = require('./routes/indexRoute.js')
const adminRoute = require('./routes/adminRoute.js')
const ORIGIN = process.env.NODE_ENV === 'development' ? "http://localhost:4000" : 'https://thalia-c8g3.onrender.com'
const ORIGIN = process.env.NODE_ENV === 'development' ? "http://localhost:4000" : 'https://thalia.vercel.app'
const corsConfig = {
origin: ORIGIN,
credentials: true,
Expand Down