Problem Statement
Which header helps reduce XSS by controlling where scripts can load from?
Explanation
CSP whitelists script sources and can block inline execution when designed well. It complements secure coding and output encoding to cut XSS risk.
Code Solution
SolutionRead Only
Content-Security-Policy: default-src 'self'; script-src 'self' https://cdn.example.com
