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

Commit

Permalink
add cors
Browse files Browse the repository at this point in the history
  • Loading branch information
Sreesanjay committed Mar 10, 2024
1 parent 2a62124 commit 36f447b
Showing 1 changed file with 1 addition and 1 deletion.
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.vercel.app'
const ORIGIN = process.env.NODE_ENV === 'development' ? "http://localhost:4000" : 'https://thalia-c8g3.onrender.com'
const corsConfig = {
origin: ORIGIN,
credentials: true,
Expand Down

0 comments on commit 36f447b

Please sign in to comment.