Skip to content

Commit 454c071

Browse files
committed
update
1 parent 1d4d8c8 commit 454c071

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

backend/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ const authenticateToken = async (req, res, next) => {
7474
// CORS configuration - Allow all origins in development
7575
const corsOptions = {
7676
origin: process.env.NODE_ENV === 'production'
77-
? 'https://project-flow-je8bqj9iy-dev-harshhh18s-projects.vercel.app'
78-
: ['http://localhost:3000', 'http://127.0.0.1:3000'], // Allow both localhost variants
77+
? ['https://project-flow-je8bqj9iy-dev-harshhh18s-projects.vercel.app', 'https://projectflow-cvcv.onrender.com']
78+
: '*', // Allow all origins in development for easier local testing
7979
credentials: true,
8080
optionsSuccessStatus: 200,
8181
methods: ['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS'],

0 commit comments

Comments
 (0)