System Design · Middle · Question 42 of 75

Which HTTP security headers should a web app configure?

Explanation

CSP restricts script sources, HSTS enforces HTTPS, frame-ancestors prevents embedding the site in an attacker's frames, nosniff prevents MIME type sniffing. ACAO: * on private APIs is, on the contrary, dangerous.

Further reading

Problem with a question

System Design · Middle · question 42

Test yourself

Take the System Design · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz