CSP Header Generator

Build Content-Security-Policy header templates locally.

Interactive controls load with JavaScript. Processing stays in your browser.

Загрузка…

How to use

  1. 选择严格/CDN/自定义预设,调整 script-src、style-src 等指令。
  2. 复制 Content-Security-Policy 头或 meta 示例。
  3. 上线前用浏览器控制台核对;frame-ancestors 等在 meta 中可能无效。
  4. 本工具不访问、不审计外部 URL。

FAQ

Does CSP Header Generator upload my data?

No. CSP Header Generator runs locally in your browser and does not upload content to www.518882.com or third-party APIs.

Do I need an account?

No. Open and use — no signup, login, or paywall. Open CSP Header Generator and use it — no signup, login, or paywall.

How is this different from upload-based tools?

Tools run locally in your browser; content is not sent to our servers for processing — suited to private text and drafts.

Are there limits?

Limited by device memory and the browser; very large inputs may slow the page. There is no account quota.