Skip to content

Commit

Permalink
cors-error-solved
Browse files Browse the repository at this point in the history
  • Loading branch information
IkkiOcean committed Nov 8, 2024
1 parent 6849406 commit 80b2e09
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 80b2e09

Please sign in to comment.