@allan1361/iota-big3-sdk-middleware
Version:
🏆 A+ Grade Certified Enterprise Middleware Framework - Phase 3 Certified (90/100) with advanced resilience patterns, comprehensive type safety, and production-ready observability
23 lines • 995 B
TypeScript
import { NextFunction, Request, Response } from 'express';
export interface SecurityHeadersOptions {
contentSecurityPolicy?: string | boolean;
strictTransportSecurity?: {
maxAge?: number;
includeSubDomains?: boolean;
preload?: boolean;
} | boolean;
xContentTypeOptions?: boolean;
xFrameOptions?: 'DENY' | 'SAMEORIGIN' | boolean;
xXssProtection?: boolean;
referrerPolicy?: string;
permissionsPolicy?: string;
}
export declare function securityHeaders(options?: SecurityHeadersOptions): (req: Request, res: Response, next: NextFunction) => void;
export declare function secureCors(options?: {
origin?: string | string[] | ((origin: string | undefined, callback: (err: Error | null, allow?: boolean) => void) => void);
credentials?: boolean;
maxAge?: number;
allowedHeaders?: string[];
exposedHeaders?: string[];
}): (req: Request, res: Response, next: NextFunction) => void;
//# sourceMappingURL=security-headers.d.ts.map