Skip to content

Commit

Permalink
fix(cors): temporarly disable cors
Browse files Browse the repository at this point in the history
  • Loading branch information
alex73630 committed Jan 24, 2023
1 parent 098cbf5 commit f92c1e8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/setup-nest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ export async function setupNest(app: NestExpressApplication | INestApplication):
if (!origin || origins.includes(origin)) {
callback(null, true)
} else {
callback(new Error(`CORS blocked request from origin ${origin}`))
// callback(new Error(`CORS blocked request from origin ${origin}`))
// Temporarily disable CORS
callback(null, true)
}
},
credentials: true
Expand Down

0 comments on commit f92c1e8

Please sign in to comment.