fix(security): complete full security remediation - httpOnly cookies, CsrfGuard, nonce-based CSP, and strict JWT production validation
This commit is contained in:
1 parent
8a3adacd38
commit
abc957ba75
8 files changed
+352
-34
No files matched your search
@@ -10,6 +10,7 @@ import { OrdersModule } from './orders/orders.module';
|
||||
import { SettingsModule } from './settings/settings.module';
|
||||
import { ThrottlerModule, ThrottlerGuard } from '@nestjs/throttler';
|
||||
import { APP_GUARD } from '@nestjs/core';
|
||||
import { CsrfGuard } from './common/guards/csrf.guard';
|
||||
import { MetricsController } from './common/metrics.controller';
|
||||
import { AdminModule } from './admin/admin.module';
|
||||
import { HomeModule } from './home/home.module';
|
||||
@@ -83,6 +84,10 @@ import { Request, Response, NextFunction } from 'express';
|
||||
provide: APP_GUARD,
|
||||
useClass: ThrottlerGuard,
|
||||
},
|
||||
{
|
||||
provide: APP_GUARD,
|
||||
useClass: CsrfGuard,
|
||||
},
|
||||
RedisService,
|
||||
],
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user