secure-headers

Configure HTTP security headers for web applications on Express.js, Nginx, and Apache.

5|1|Updated Feb 4, 2026
One-click install
npx skills add https://github.com/latestaiagents/agent-skills --skill secure-headers
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: secure-headers
Source: https://github.com/latestaiagents/agent-skills/tree/main/skills/security/common-security/secure-headers
Command: npx skills add https://github.com/latestaiagents/agent-skills --skill secure-headers

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you configure essential HTTP security headers to protect web applications against common attacks like XSS, clickjacking, and MIME-sniffing.

Core Features & Use Cases

  • Header Configuration: Provides guidance and code examples for setting up Content Security Policy (CSP), HSTS, X-Frame-Options, and more.
  • Cross-Platform Examples: Includes implementations for Express.js, Nginx, and Apache.
  • Use Case: When deploying a new web application, use this Skill to ensure all critical security headers are correctly implemented to minimize vulnerability.

Quick Start

Configure secure HTTP headers for your Express.js application using the provided Helmet.js example.

Frequently Asked Questions about secure-headers

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

FAQPage Schema
How do I configure HTTP security headers to prevent XSS and clickjacking in Express.js?

Configure HTTP security headers like Content Security Policy and X-Frame-Options in Express.js using Helmet.js to prevent XSS and clickjacking. The Skill provides direct implementation examples for setting these headers in your application.

What is the best way to set up Content Security Policy (CSP) and HSTS in Nginx?

Setting up Content Security Policy (CSP) and HSTS in Nginx involves adding specific directives to your server configuration to mitigate cross-site scripting and enforce HTTPS. This Skill provides cross-platform configuration examples for Nginx.

Do I need to configure X-Frame-Options and MIME-sniffing headers for a new web app deployment?

Configuring X-Frame-Options and MIME-sniffing headers for a new web app deployment is needed to minimize vulnerabilities against clickjacking and malicious file execution. This ensures critical HTTP security headers are implemented correctly during deployment.

Does this Skill provide HTTP security header examples for Apache as well as Node.js?

This Skill provides HTTP security header examples for Apache, Nginx, and Express.js. It covers cross-platform implementations for setting up headers like Strict-Transport-Security (HSTS) across different web server environments.

Why does configuring HSTS matter for web security and when should I apply it?

Configuring HSTS matters for web security because it forces browsers to strictly use HTTPS, preventing protocol downgrade attacks. You should apply HSTS when deploying web applications to ensure all critical security headers are active.

What limitations or precautions exist when implementing Content Security Policy?

Limitations of implementing Content Security Policy include potential blockage of legitimate inline scripts and external resources if directives are too strict. Careful tuning of CSP rules is required to balance security and application functionality.