Title: EssentialHeaders
Author: Alex Hedström
Published: <strong>2026 年 8 月 14 日</strong>
Last modified: 2026 年 8 月 14 日

---

搜索插件

![](https://ps.w.org/essentialheaders/assets/banner-772x250.png?rev=3646718)

![](https://ps.w.org/essentialheaders/assets/icon-256x256.png?rev=3646718)

# EssentialHeaders

 作者：[Alex Hedström](https://profiles.wordpress.org/alexhedstrom/)

[下载](https://downloads.wordpress.org/plugin/essentialheaders.1.0.0.zip)

 * [详情](https://cn.wordpress.org/plugins/essentialheaders/#description)
 * [评价](https://cn.wordpress.org/plugins/essentialheaders/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/essentialheaders/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/essentialheaders/#developers)

 [支持](https://wordpress.org/support/plugin/essentialheaders/)

## 描述

EssentialHeaders is a focused WordPress plugin that attaches the HTTP security headers
browsers expect, so protection is not left to chance or buried in server config.

Under Settings  EssentialHeaders you get three tabs:

 * Headers — overview of which headers are enabled and will be sent
 * Settings — toggles and editable values for each header
 * About — plugin info

Headers covered:

 * Content-Security-Policy (CSP)
 * Strict-Transport-Security (HSTS)
 * X-Frame-Options
 * X-Content-Type-Options
 * Referrer-Policy
 * Permissions-Policy

Safer headers ship enabled with sensible defaults. CSP starts off so you can adopt
it deliberately. Headers apply to public site responses (pages, feeds, and the login
screen)—not wp-admin, AJAX, REST, GraphQL, JSON API, or XML-RPC. HSTS is only sent
over HTTPS. Default HSTS uses max-age only; add includeSubDomains yourself when 
every subdomain is ready.

## 安装

 1. Upload the `essentialheaders` folder to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the Plugins menu in WordPress.
 3. Open Settings  EssentialHeaders to review and configure headers.

## 常见问题

### Will this break my site?

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.

### Does HSTS work on HTTP?

No. Strict-Transport-Security is only sent when the visitor reaches the site over
HTTPS.

### Does the login screen get these headers?

Yes. The login screen is treated as a public response. wp-admin, AJAX, REST, GraphQL,
JSON API, and XML-RPC are excluded so dashboards and APIs are not broken by a strict
CSP.

### Does this change site content?

No. The plugin only stores its own options and adds HTTP response headers on public
responses.

## 评价

此插件暂无评价。

## 贡献者及开发者

「EssentialHeaders」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Alex Hedström ](https://profiles.wordpress.org/alexhedstrom/)

[帮助将「EssentialHeaders」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/essentialheaders)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/essentialheaders/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/essentialheaders/)，或通过[RSS](https://plugins.trac.wordpress.org/log/essentialheaders/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/essentialheaders/)。

## 更新日志

#### 1.0.0

 * Initial release.

## 额外信息

 *  版本 **1.0.0**
 *  最后更新：**2 天前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 6.3 或更高版本 **
 *  已测试的最高版本为 **7.1**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/essentialheaders/)
 * 标签
 * [csp](https://cn.wordpress.org/plugins/tags/csp/)[hardening](https://cn.wordpress.org/plugins/tags/hardening/)
   [headers](https://cn.wordpress.org/plugins/tags/headers/)[hsts](https://cn.wordpress.org/plugins/tags/hsts/)
   [security](https://cn.wordpress.org/plugins/tags/security/)
 *  [高级视图](https://cn.wordpress.org/plugins/essentialheaders/advanced/)

## 评级

尚未提交反馈。

[您的评价](https://wordpress.org/support/plugin/essentialheaders/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/essentialheaders/reviews/)

## 贡献者

 *   [ Alex Hedström ](https://profiles.wordpress.org/alexhedstrom/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/essentialheaders/)