plugin-icon

HeaderShield

作者:Vishwa·
Add safe, modern HTTP security headers with optional strict cross-origin protections and a simple admin UI.
版本
1.0.14
最后更新
Mar 20, 2026
HeaderShield

HeaderShield adds a conservative set of security headers that improve browser protection without breaking most sites. It also provides optional strict cross-origin protections for sites that are ready for them.

Default headers include:

  • X-Frame-Options
  • X-Content-Type-Options
  • X-XSS-Protection (legacy)
  • Referrer-Policy
  • Permissions-Policy
  • Content-Security-Policy (upgrade-insecure-requests)
  • Strict-Transport-Security (HTTPS only)

Strict Mode can additionally enable COEP, COOP, and CORP for stronger isolation, but may break third‑party scripts or embeds. Use with care and test on staging first.

Source code for third-party assets

The admin UI uses SlimSelect for the multi-select dropdown. Human-readable source is included in the plugin:

  • JavaScript: assets/js/slimselect.js (minified build: assets/js/slimselect.min.js)
  • CSS: assets/css/slimselect.css (minified build: assets/css/slimselect.min.css)

Upstream project: https://github.com/brianvoe/slim-select (MIT). This plugin does not use a custom build process; the included files are from the published release.

免费基于付费套餐
通过安装,您同意 WordPress.com 服务条款第三方插件条款
目前已测试版本
WordPress 6.9.4
这个插件是可用的下载,适用于您的站点。