
Security Headers Configuration
This sets up HTTP security headers to protect web apps from XSS, clickjacking, and MIME sniffing attacks. You get reference implementations for Express, Nginx, Flask, and Apache covering CSP, HSTS, X-Frame-Options, and the rest of the standard hardening stack. Use it when deploying new apps, fixing security audit findings, or meeting compliance requirements. The guides are platform specific which is helpful since header syntax varies wildly between a Node middleware and an htaccess file. One thing to note: the quick start shows unsafe-inline in the CSP example, which the best practices section correctly warns against, so you'll want to tighten that up for production.
- skills.sh installs
- 519
- GitHub stars
- 379
- last updated
- Aug 21, 2026
Install
$ npx -y skills add aj-geddes/useful-ai-prompts --skill security-headers-configuration --agent claude-codeInstalls into .claude/skills of the current project.
Files
Security Headers Configuration
Table of Contents
Overview
Implement comprehensive HTTP security headers to protect web applications from XSS, clickjacking, MIME sniffing, and other browser-based attacks.
When to Use
- New web application deployment
- Security audit remediation
- Compliance requirements
- Browser security hardening
- API security
- Static site protection
Quick Start
Minimal working example:
// security-headers.js
const helmet = require("helmet");
Sponsors
Details
- Repository
- github.com/aj-geddes/useful-ai-prompts
- Categories
- Security, AI & Agent Building
- First seen
- Jun 3, 2026
More from aj-geddes/useful-ai-prompts
All 258- Prometheus Monitoring516
- Frontend Testing514
- Api Error Handling513
- Interaction Design510
- Technical Debt Assessment509
- Webhook Development509
- Api Gateway Configuration508
- React Native App508
- Rate Limiting Implementation507
- Ssl Certificate Management505
- Stakeholder Communication505
- Database Migration Management504
- Test Automation Framework504
- Cicd Pipeline Setup503
- Form Validation503
- Stress Testing503
- Test Data Generation502
- Application Logging501
- Grafana Dashboard501
- Changelog Maintenance500
- Code Documentation500
- Api Reference Documentation499
- Database Performance Debugging499
- Reactive Programming496