UNPKG

nestjs-security-module

Version:

A plug-and-play NestJS security module with CORS, Helmet, rate limiting, audit logging, CSP, XSS sanitization, and more.

19 lines (18 loc) 619 B
export interface SecurityModuleOptions { helmet?: boolean; cors?: boolean | Record<string, any>; rateLimit?: { windowMs: number; max: number; }; auditLog?: boolean; csp?: boolean | Record<string, any>; sanitize?: boolean; referrerPolicy?: boolean | Record<string, any>; xFrameOptions?: boolean | 'DENY' | 'SAMEORIGIN'; hsts?: boolean | Record<string, any>; xContentTypeOptions?: boolean; expectCt?: boolean | Record<string, any>; permissionsPolicy?: boolean | Record<string, string[]>; crossOriginEmbedderPolicy?: boolean | Record<string, any>; }