guox-express
Version:
GuOx: Ultimate enterprise‑grade, AI & WASM‑powered Express security framework
10 lines (8 loc) • 379 B
text/typescript
import helmet, { Directorios } from 'helmet';
import { RequestHandler } from 'express';
export default function SecurityHeaders(opts?: Partial<Directorios>): RequestHandler {
const config = { contentSecurityPolicy:false, crossOriginEmbedderPolicy:false, ...opts };
const mw = helmet(config);
Object.defineProperty(mw, 'name', { value: 'SecurityHeaders' });
return mw;
}