Practice ยท 1 of 3
Header Auditor
Write auditHeaders(headers) โ headers is an object of response headers. Return an array of missing-hardening findings, checked in this order: no "Content-Security-Policy" => "missing-csp"; no "Strict-Transport-Security" => "missing-hsts"; no "X-Content-Type-Options" => "missing-nosniff"; "X-Frame-Options" not "DENY" (absent counts) => "clickjackable". Empty array = hardened.
Difficulty: intermediate
Press Submit to check your solution.
Back to lesson: Practice: Headers & CORS โ Practice