Skip to content

安全报文 ​

设置一系列安全相关的报头

安装 ​

bash
pnpm add @aomex/helmet

使用 ​

typescript
// src/web.ts
import { WebApp } from '@aomex/core';
import { helmet } from '@aomex/helmet';

const app = new WebApp({
  mount: [helmet()],
});

参数 ​

请参考 helmet 官方文档:github.com/helmetjs/helmet