HYPERJS.AI

CSP

v0.1.0Content-Security-Policy + sibling headers (CSP, CORP, COEP, COOP, Report-To) for Hyper.

$ hyper add csp

Copies 1 file into src/hyper/csp/ and updates hyper.lock.json.

DEPS

FILES

README

@hyper/csp

Content-Security-Policy + sibling headers (CSP, CORP, COEP, COOP, Report-To) for Hyper.

Install

Components are installed as source into your repo, not pulled from npm:

bunx hyper add csp

Wires the alias @hyper/csp to src/hyper/csp/ (configurable in hyper.config.json). See hyperjs.ai for the full registry.

Usage

import { Hyper } from "@hyper/core"
import { cspPlugin } from "@hyper/csp"

export default new Hyper()
  .use(cspPlugin({ strictApi: true }))
  .listen(3000)

Docs

See the main README and docs/ for guides and integration recipes.

License

MIT

MANIFEST