Content Security Policy in Depth
Design, deploy and maintain a strict CSP that actually stops cross-site scripting.
- 1 h 40 min
- 6 leçons
- Obtenez un certificat vérifiable
- Mis à jour le 21 nov. 2026
Ce que vous apprendrez
- Explain why allow-list policies fail and strict policies work
- Deploy a nonce-based policy with strict-dynamic
- Roll out with report-only mode and handle violation reports
- Use Trusted Types to remove DOM XSS sinks
Compétences acquises
- CSP
- Nonces
- Strict-dynamic
- Trusted types
- XSS
À propos de ce cours
Most Content Security Policies on the web give almost no protection: they allow-list large CDNs, keep 'unsafe-inline', or never leave report-only mode. This course shows how to build a strict policy that blocks injected scripts, roll it out without breaking production, and keep it healthy as the site changes.
Pass the final exam to earn the Scanverra Certified CSP Expert certificate.
Programme
3 modules · 6 leçons · 100 min
1Why most policies fail2 leçons · 18 min · Quiz du module
How allow-lists get bypassed and what a strict policy looks like.
- Allow-lists versus strict policiesAperçu10 min
- The other directives that matter8 min
- Why most policies fail: quiz3 questions
2Deploying a nonce-based policy2 leçons · 18 min · Quiz du module
Generating nonces, wiring them into templates and dealing with third-party tags.
- Nonces from server to template10 min
- Third-party tags and tag managers8 min
- Deploying a nonce-based policy: quiz3 questions
3Rollout, reporting and Trusted Types2 leçons · 18 min · Quiz du module
Shipping without breaking production, then going further than script blocking.
- Report-only, then enforce9 min
- Trusted Types for DOM XSS9 min
- Rollout, reporting and Trusted Types: quiz3 questions
Avant de commencer
Recommandé avant :
Obtenez un certificat vérifiable
Réussissez l'examen final pour recevoir un certificat Expert signé, avec une page de vérification permanente à partager avec vos employeurs.
- 80 % pour réussir
- 25 minutes
- 3 tentatives
- 24 heures entre deux tentatives
Valable 24 mois, renouvelable en repassant l'examen.
Votre formateur
Scanverra Research Team
Security, performance and search specialists at Scanverra
The team that builds Scanverra's scanners. Every lesson is based on problems we find on real websites every day.
À apprendre ensuite
- Website SecurityDébutant1 h 35 min
Website Security Fundamentals
HTTPS, security headers and cookies: the controls every public website needs.
6 leçonsCertificat - Website SecurityIntermédiaire1 h 25 min
TLS and Certificate Management
Modern TLS settings, automated renewals and the DNS records that stop rogue certificates.
6 leçonsCertificat
Questions sur ce cours
Oui. Tout compte Scanverra peut suivre ce cours, ses quiz et son examen, et obtenir le certificat gratuitement.
Chaque certificat a un identifiant unique et une page publique permanente sur scanverra.com/certifications/verify. La page contrôle la signature numérique et indique s'il est valide, expiré ou révoqué.
Vous pouvez le repasser après le délai indiqué ci-dessus. Chaque tentative présente les questions dans un nouvel ordre.
Oui. Votre position, vos notes et la position de la vidéo sont enregistrées, vous pouvez reprendre sur n'importe quel appareil.