Skip to content

Commit

Permalink
Merge pull request #866 from IkkiOcean/vercel-backend
Browse files Browse the repository at this point in the history
Fixed CORS Setting for the backend
  • Loading branch information
manikumarreddyu authored Nov 8, 2024
2 parents 6849406 + 80b2e09 commit b6b8f29
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions backend/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,7 @@ require("./services/passport")
const geminiChatRoute = require('./routes/geminiChatRoute');
const app = express();

app.use(cors(
{
origin : "http://localhost:5173"
}
)); // This allows all origins to access your API
app.use(cors()); // This allows all origins to access your API

app.use(
session({
Expand Down

0 comments on commit b6b8f29

Please sign in to comment.