|
Download README.md from aptdot/http-security-headers: direct link, hf CLI and curl.
- Browser
- Download file 2.93 kB
-
https://huggingface.co/datasets/aptdot/http-security-headers/resolve/main/README.md
- Command line
-
hf download hf://datasets/aptdot/http-security-headers/README.md
-
curl -L -o README.md https://huggingface.co/datasets/aptdot/http-security-headers/resolve/main/README.md
2.93 kB
| license: cc0-1.0 | |
| pretty_name: "HTTP Security Headers Reference" | |
| language: | |
| - en | |
| size_categories: | |
| - n<1K | |
| tags: | |
| - security | |
| - http-headers | |
| - csp | |
| - hsts | |
| - web-security | |
| - json | |
| - json-schema | |
| configs: | |
| - config_name: headers | |
| data_files: records-headers.jsonl | |
| default: true | |
| # HTTP Security Headers Reference | |
| 9 HTTP response headers (CSP, HSTS, Permissions-Policy, COOP/COEP/CORP and more) with baseline and hardened values, browser support notes, common pitfalls and config snippets for Nginx, Apache, Next.js, Vercel, Netlify, Caddy and Helmet. | |
| Reference data for security linters, config generators, header scanners and documentation. | |
| **Full guide and live preview: [www.aptdot.com/datasets/http-security-headers/](https://www.aptdot.com/datasets/http-security-headers/)** | |
| | | | | |
| | :--- | :--- | | |
| | Version | 1.1.2 (2026-09-27) | | |
| | License | CC0 1.0 (public domain) | | |
| | JSON Schema | [`http-security-headers.schema.json`](https://www.aptdot.com/data/v1/http-security-headers.schema.json) (Draft 2020-12) | | |
| | Source repository | [github.com/mkchd25/aptdot-datasets](https://github.com/mkchd25/aptdot-datasets) | | |
| | Publisher | [Aptdot](https://www.aptdot.com) | | |
| ## Files | |
| | File | What it is | | |
| | :--- | :--- | | |
| | `http-security-headers.json` | The complete dataset, identical to the file on aptdot.com and GitHub | | |
| | `http-security-headers.schema.json` | Its JSON Schema (Draft 2020-12) | | |
| | `records-*.jsonl` | The main lists, one record per line, for the viewer and the `datasets` library | | |
| ## Tables | |
| | Table | Rows | File | Fields | | |
| | :--- | ---: | :--- | :--- | | |
| | `headers` | 9 | `records-headers.jsonl` | `header`, `category`, `rfc_w3c_spec`, `baseline_default`, `recommended_production`, `risk_level`, `app_targets`, `deprecated_alternatives`, ... | | |
| ## Load it | |
| ```python | |
| from datasets import load_dataset | |
| rows = load_dataset("aptdot/http-security-headers", "headers", split="train") | |
| ``` | |
| Or use the complete JSON file as it is: | |
| ```python | |
| import json | |
| from huggingface_hub import hf_hub_download | |
| path = hf_hub_download("aptdot/http-security-headers", "http-security-headers.json", repo_type="dataset") | |
| data = json.load(open(path, encoding="utf-8")) | |
| ``` | |
| ## Check your own data against the schema | |
| Paste your records and `http-security-headers.schema.json` into the free [JSON Schema Validator](https://www.aptdot.com/tools/json-schema-validator/). It runs in your | |
| browser, uploads nothing and explains every problem in plain English with its line number. | |
| ## Notes | |
| - The `records-*.jsonl` files are generated from `http-security-headers.json`. If they ever disagree, `http-security-headers.json` is the reference. | |
| - Versions match aptdot.com and GitHub. Changes are listed in the repository's [CHANGELOG](https://github.com/mkchd25/aptdot-datasets/blob/main/CHANGELOG.md). | |
| ## License | |
| CC0 1.0 Universal: public domain. You can copy, change and use it for any purpose, including commercial use, without asking. | |