aj-geddes/useful-ai-prompts
Configuration des en-têtes de sécurité
Security Headers Configuration
3 268e ex aequo sur 4 265 skills du métier Développement, par installations. Dans l'annuaire depuis le 18 novembre 2026.
Description
Configure les en-têtes de sécurité HTTP pour protéger les applications web du XSS, du clickjacking et du MIME sniffing. Fournit des implémentations de référence pour Express, Nginx, Flask et Apache couvrant CSP, HSTS, X-Frame-Options et le reste du durcissement standard.
Voir la description originale (anglais)
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.
Installer le skill
- 1Copiez la commande d'installation (bouton Copier, en haut de la fiche).
- 2Lancez-la dans un terminal, sur la machine où vous utilisez Claude Code.
- 3Demandez la tâche à Claude comme d'habitude : il charge le skill quand la demande s'y prête.