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

Commit

Permalink
feat: update CORS
Browse files Browse the repository at this point in the history
  • Loading branch information
YanceyOfficial committed May 2, 2020
1 parent 44cbabb commit ce9add4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/shared/middlewares/index.middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const configMiddlewares = (app: INestApplication) => {
app.use(helmet())
app.enableCors({
origin: isEnvProduction ? /.*\.yanceyleo\.com/ : false,
methods: ['POST'],
})
app.use(
rateLimit({
Expand Down

0 comments on commit ce9add4

Please sign in to comment.