Re:HTTP headers for the responsible developer
by gmiller123456 on Thursday May 09, 2019 @07:50AM
(#19867313)
The Content-Security-Policy header prevents any new JavaScript from getting executed. Any inline scripts have to have a matching nonce, or SHA hash in the CSP header. With XSS, an attacker can insert content into the web page, but they can't modify the headers, so this effectively stops all XSS without some additional vulnerability being exploited.
[ Parent
| on HN ]
There are no comments on this comment yet.