Skip to content

Commit

Permalink
change for backend workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
taronaleksanian committed Oct 29, 2024
1 parent a16be97 commit c5259bf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ app.use('*', securityHeaders()); // Apply to all routes so avoid commenting this
// SETUP CORS
app.use('*', async (c, next) => {
const CORS_ORIGIN = String(c.env.CORS_ORIGIN);
console.log('SETUP CORS');
const corsMiddleware = cors({
// origin: CORS_ORIGIN, // uncomment this line to enable CORS
origin: '*', // temporary
Expand Down

0 comments on commit c5259bf

Please sign in to comment.