Skip to content

Commit

Permalink
Check now
Browse files Browse the repository at this point in the history
  • Loading branch information
samar12-rad committed Oct 8, 2024
1 parent 1ee4265 commit c635684
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions backend/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,20 @@ dotenv.config();
const app = express();
const port = process.env.PORT || 3000;



// CORS configuration
app.use(
cors({
origin: ["http://localhost:5173", "https://play-cafe.vercel.app"],
})
);

// CORS configuration
const corsOptions = {
origin: ["http://localhost:5173", "https://play-cafe.vercel.app"],
};

app.use(express.json());

// MongoDB connection
Expand Down

0 comments on commit c635684

Please sign in to comment.