Skip to content

Commit

Permalink
need to fix the vercel build.....its not working rn so this is commit…
Browse files Browse the repository at this point in the history
… is a bandaid
  • Loading branch information
anirvinv committed Apr 11, 2024
1 parent 1652944 commit 006d08c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/public/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ const DEV = process.env.NODE_ENV === "DEV";
// Add this middleware to parse JSON request bodies
exports.app.use(express_1.default.json());
exports.app.use((0, cors_1.default)({
credentials: true
credentials: true,
// allow multiple origins
origin: ["http://localhost:3000", "https://cca-frontend-m58844dd4-hack4impactrutgers.vercel.app/"],
}));
exports.app.use((0, cookie_parser_1.default)());
exports.app.use("/admin", admin_route_1.default);
Expand Down

0 comments on commit 006d08c

Please sign in to comment.