---
title: "Security Headers Generator Tool - AllTools"
description: "AllTools emits HSTS, X-Frame-Options, X-Content-Type-Options and Referrer-Policy with OWASP values. No sign-up, and your code never leaves the browser."
canonical_url: "https://tool.warmday.wang/en/dev/security-headers"
meta:
  author: AllTools
  keywords: "online tools, AllTools, free online tools, developer tools, image tools, PDF tools, text tools, unit converter, no login, browser-based tools"
  "og:description": "AllTools emits HSTS, X-Frame-Options, X-Content-Type-Options and Referrer-Policy with OWASP values. No sign-up, and your code never leaves the browser."
  "og:image": "https://tool.warmday.wang/img/og-cover.png"
  "og:image:alt": "AllTools Logo"
  "og:image:height": "630"
  "og:image:width": "1200"
  "og:title": "Security Headers Generator Tool"
  "twitter:image": "https://tool.warmday.wang/img/og-cover.png"
---

> Index of every page on this site: [llms.txt](https://tool.warmday.wang/llms.txt)

# **Security Headers Generator**

Generate security response header configs for Nginx, Apache, Express and more.

### **HSTS**

**Recommended****HSTS**

Enforce HTTPS connections and prevent protocol downgrade attacks.

**max-age (seconds)**

**includeSubDomains**

**preload**

### **X-Frame-Options**

**Recommended****Control whether the page can be embedded in an iframe, preventing clickjacking.**

Control whether the page can be embedded in an iframe, preventing clickjacking.

**Value**

### **X-Content-Type-Options**

**Recommended****nosniff**

Prevent browser MIME type sniffing. Fixed value: nosniff.

### **X-XSS-Protection**

**Deprecated****Legacy Browser**

Legacy IE XSS filter. Deprecated in modern browsers; use CSP instead.

**Value**

### **Referrer-Policy**

**Recommended****Control Referer header leakage to prevent sensitive URL exposure.**

Control Referer header leakage to prevent sensitive URL exposure.

**Value**

### **Permissions-Policy**

**Control browser feature permissions (camera, microphone, geolocation, etc.).**

Control browser feature permissions (camera, microphone, geolocation, etc.).

### **Cross-Origin-Opener-Policy**

**COOP**

Isolate browsing context to prevent cross-origin window interaction (Spectre mitigation).

### **Cross-Origin-Embedder-Policy**

**COEP**

Require all cross-origin resources to carry CORP header or CORS credentials.

### **Cross-Origin-Resource-Policy**

**CORP**

Restrict which origins can load a resource.

**Value**

**Output Format**

Select target server/framework for configuration

**Generated Result**

### **Usage**

#### **Features**

HTTP security response headers are a critical part of browser security, defending against clickjacking, MIME sniffing, XSS, and more.

#### **Steps**

Check the security headers you want to enable, adjust their values, and select an output format. Configuration is generated in real time.

#### **Notes**

Ensure full HTTPS deployment before enabling HSTS. HSTS preload list is difficult to undo.

## **Related tools**

More from the same category · Developer Tools

[**Cron Expression**Visual Cron builder: pick minute-hour-day-month-weekday fields and preview next run times live.](https://tool.warmday.wang/en/dev/cron) [**JSON Formatter**JSON beautify, minify and validate with auto error location for missing brackets and stray commas.](https://tool.warmday.wang/en/dev/json) [**Timestamp Converter**Convert Unix timestamps to dates and back with second/millisecond precision and live current time.](https://tool.warmday.wang/en/dev/timestamp) [**Regex Tester**Test regex with live match highlighting, capture groups and substitution, toggling g/i/m/s flags.](https://tool.warmday.wang/en/dev/regex) [**JWT Parser**Split a JWT into header, payload and signature, then base64url-decode claims and expiry without a key.](https://tool.warmday.wang/en/dev/jwt-parser) [**JWT Generator**Issue JWTs with custom header, claims and expiry across HS256, RS256, ES256 for auth-flow testing.](https://tool.warmday.wang/en/dev/jwt-generator)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://tool.warmday.wang/#organization","name":"AllTools","alternateName":"AllTools - 全能工具箱","url":"https://tool.warmday.wang/","logo":{"@type":"ImageObject","url":"https://tool.warmday.wang/img/logo.png","width":512,"height":512}},{"@type":"WebSite","@id":"https://tool.warmday.wang/en#website","url":"https://tool.warmday.wang/en","name":"AllTools","inLanguage":"en","publisher":{"@id":"https://tool.warmday.wang/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://tool.warmday.wang/en?q={search_term_string}"},"query-input":"required name=search_term_string"}},{"@type":"WebPage","@id":"https://tool.warmday.wang/en/dev/security-headers#webpage","url":"https://tool.warmday.wang/en/dev/security-headers","isPartOf":{"@id":"https://tool.warmday.wang/en#website"},"inLanguage":"en","name":"Security Headers Generator Tool","description":"AllTools emits HSTS, X-Frame-Options, X-Content-Type-Options and Referrer-Policy with OWASP values. No sign-up, and your code never leaves the browser."},{"@type":"SoftwareApplication","@id":"https://tool.warmday.wang/en/dev/security-headers#app","name":"Security Headers Generator Tool","description":"AllTools emits HSTS, X-Frame-Options, X-Content-Type-Options and Referrer-Policy with OWASP values. No sign-up, and your code never leaves the browser.","url":"https://tool.warmday.wang/en/dev/security-headers","applicationCategory":"DeveloperApplication","operatingSystem":"Web","inLanguage":"en","isPartOf":{"@id":"https://tool.warmday.wang/en/dev/security-headers#webpage"},"offers":{"@type":"Offer","price":"0","priceCurrency":"CNY"}},{"@type":"BreadcrumbList","@id":"https://tool.warmday.wang/en/dev/security-headers#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://tool.warmday.wang/en"},{"@type":"ListItem","position":2,"name":"Developer Tools","item":"https://tool.warmday.wang/en/dev"},{"@type":"ListItem","position":3,"name":"Security Headers Generator","item":"https://tool.warmday.wang/en/dev/security-headers"}]}]}
```

## Sitemap

See the full [sitemap](https://tool.warmday.wang/sitemap.md) for all pages.
