A web application behind a load balancer shows signs of a reflected XSS attempt, but CSP headers are present. Which CSP-related issue most likely allowed exploitation?

Answer

CSP uses default-src 'self' but omits script-src restrictions for inline scripts

Explanation

If script execution policies are incomplete (e.g., inline scripts permitted due to missing script-src controls), reflected payloads may execute. The other options describe stronger CSP configurations that reduce XSS viability.

Last reviewed: October 2026

Reviewed by FirstInTest Editorial Team

Report an error
QuestionBack to list