Lesson 4.1

HTTPS, security headers, and CSP

A handful of response headers remove entire attack classes. CSP is the strongest and the fiddliest, so roll it out in report-only first.

Duration
8m
Level
Intermediate
Students
7.1k students

Overview

A handful of response headers remove entire attack classes. CSP is the strongest and the fiddliest, so roll it out in report-only first.

In this lesson you will:

  • Enforce HTTPS and enable HSTS
  • Set the headers that block framing and sniffing
  • Introduce a content security policy incrementally

Resources

OWASP Top 10

The official reference for the tools used in this lesson.