| 开发者 | alexhedstrom |
|---|---|
| 更新时间 | 2026年8月28日 12:49 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
essentialheaders folder to the /wp-content/plugins/ directory.The default set is conservative. Content-Security-Policy is off by default because a strict CSP can block scripts or styles your theme needs. Enable CSP when you are ready to tune it.
No. Strict-Transport-Security is only sent when the visitor reaches the site over HTTPS.
Yes. The login screen is treated as a public response. wp-admin, AJAX, REST, GraphQL, and XML-RPC are excluded, so dashboards and APIs are not broken by a strict CSP.
No. The plugin only stores its own options and manages HTTP response headers on public responses.
EssentialHeaders removes PHP- and WordPress-managed instances at the latest applicable WordPress header hook. Another callback running afterward, a reverse proxy, or a web server can add the header again; remove it at that layer as well.