security-headers-configuration

Configure HTTP security headers for Express, Nginx, Flask, and Apache deployments.

204|30|Updated Nov 8, 2025
One-click install
npx skills add https://github.com/secondsky/claude-skills --skill security-headers-configuration
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: security-headers-configuration
Source: https://github.com/secondsky/claude-skills/tree/main/plugins/security-headers-configuration/skills/security-headers-configuration
Command: npx skills add https://github.com/secondsky/claude-skills --skill security-headers-configuration

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Configures HTTP security headers to protect against XSS, clickjacking, and MIME sniffing, helping pass security audits and harden web applications.

Core Features & Use Cases

  • Essential headers (HSTS, CSP, X-Frame-Options, X-Content-Type-Options)
  • Implementation patterns for Express, Nginx, and Apache
  • Verification tools and best practices

Quick Start

Implement headers in your web app and test with Security Headers tools.

Frequently Asked Questions about security-headers-configuration

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure HTTP security headers to protect against XSS and clickjacking?

HTTP security headers mitigate XSS, clickjacking, and MIME-sniffing by instructing browsers to enforce strict policies. This Skill configures essential headers—HSTS, CSP, X-Frame-Options, and X-Content-Type-Options—across Express, Nginx, Flask, and Apache to harden your application and pass security audits.

Can I implement security headers in Express, Nginx, and Apache with the same approach?

Security headers require platform-specific implementation. This Skill provides per-platform provisioning: helmet for Express, headers directives for Nginx, Flask-Talisman for Python Flask, and mod_headers for Apache, ensuring consistent hardening across your deployment.

What is Content Security Policy (CSP) and how does nonce-based CSP work?

CSP is a security header that restricts resource loading to prevent XSS attacks. Nonce-based CSP uses unique tokens to allow specific inline scripts and styles while blocking unauthorized code, providing fine-grained control without broad inline permissions.

How do I verify that security headers are correctly configured?

Verification tools scan HTTP response headers to confirm HSTS, CSP, X-Frame-Options, and other security directives are present and properly set. This Skill includes tooling and best practices to test and validate header configuration across your application.

Do I need to configure Referrer-Policy and Permissions-Policy for web application hardening?

Yes. Referrer-Policy controls leak of referrer information, and Permissions-Policy restricts browser features like geolocation and camera. This Skill covers both as part of comprehensive hardening and audit-ready security header implementation.

What is HSTS and why is it critical for security?

HTTP Strict-Transport-Security (HSTS) forces browsers to communicate over HTTPS only, preventing downgrade attacks and man-in-the-middle interception. This Skill configures HSTS across all supported platforms to enforce secure transport.