Skip to content

Commit

Permalink
Merge 868ddd1 into c3f3d41
Browse files Browse the repository at this point in the history
  • Loading branch information
vip30 committed May 4, 2019
2 parents c3f3d41 + 868ddd1 commit 05afafd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/cors/index.ts
Expand Up @@ -13,7 +13,8 @@ export class CorsMiddleware implements NestMiddleware {
public use(req: any, res: any, next: any) {
if (CorsMiddleware.options) {
cors(CorsMiddleware.options)(req, res, next);
} else {
cors()(req, res, next);
}
cors()(req, res, next);
}
}

0 comments on commit 05afafd

Please sign in to comment.