github/secure_headers
Manages application of security headers with many safe defaults observed · 2026-08-28
Health v2 · maintenance only
84/100
- Activity 94
- Release rhythm 63
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 102
- age_days: 5013
- days_rel: 91
- days_push: 37
- n_releases_24m: 4
Adoption not part of the score
3228 stars · 254 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A Ruby gem that manages the application of HTTP security response headers such as Content Security Policy, HSTS, and X-Frame-Options with safe defaults. It provides global configuration, per-request overrides, and Rack middleware integration for Rails and Sinatra applications.
Use cases
- add security headers to a rails app
- set up content security policy to prevent xss
- enforce https with hsts
- prevent clickjacking with x-frame-options
- mark cookies as secure httponly and samesite
- configure referrer-policy headers
- apply security headers in sinatra
When to choose
- you run a Ruby web application and want secure default headers with minimal effort
- you need fine-grained CSP configuration with named and per-action overrides
- you want a battle-tested library maintained by GitHub
When to avoid
- your stack is not Ruby or Rack-based
- you manage headers at the reverse proxy or CDN layer instead of the app
- you need a general web application firewall rather than header management
Facets
library · maturity stable
middleware security security web-development backend ruby security-headers content-security-policy hsts rack-middleware clickjacking-protection xss-protection web-server
1 source
- readme: https://github.com/github/secure_headers · fetched 2026-08-28 · 8fefa52a0a9b
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| github/secure_headers | main | 84 |
For agents
markdown · JSON · MCP: product_card(name="github/secure_headers")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem