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

---

搜尋外掛

![](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.1.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/essentialheaders/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/essentialheaders/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/essentialheaders/#installation)
 * [開發資訊](https://tw.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, 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,
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.1

 * Fix: always send security headers on front-end HTML even when the request Accept
   header prefers JSON. Skipping those requests let page caches store header-less
   responses and broke scanner results after cache warm-up.

#### 1.0.0

 * Initial release.

## 中繼資料

 *  版本 **1.0.1**
 *  最後更新 **2 週前**
 *  啟用安裝數 **10+**
 *  WordPress 版本需求 ** 6.3 或更新版本 **
 *  已測試相容的 WordPress 版本 **7.1**
 *  PHP 版本需求 ** 7.4 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/essentialheaders/)
 * 標籤:
 * [csp](https://tw.wordpress.org/plugins/tags/csp/)[hardening](https://tw.wordpress.org/plugins/tags/hardening/)
   [headers](https://tw.wordpress.org/plugins/tags/headers/)[http](https://tw.wordpress.org/plugins/tags/http/)
   [security](https://tw.wordpress.org/plugins/tags/security/)
 *  [進階檢視](https://tw.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/)