Skip to content
This repository has been archived by the owner on Nov 29, 2021. It is now read-only.

Commit

Permalink
fix: open all cors
Browse files Browse the repository at this point in the history
  • Loading branch information
YanceyOfficial committed Oct 24, 2021
1 parent 1c632ae commit e9d7753
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/shared/middlewares/middleware.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ export const configMiddlewares = (app: INestApplication) => {
app.use(
helmet({ contentSecurityPolicy: process.env.NODE_ENV === 'production' ? undefined : false }),
)
app.enableCors(configCORS())
app.enableCors({})
// app.enableCors(configCORS())
app.use(
rateLimit({
windowMs: 15 * 60 * 1000,
Expand Down

0 comments on commit e9d7753

Please sign in to comment.