X-XSS-Protection vs CSP

As far as I understand, CSP can be used for all the same things as X-XSS-Protectionmore. If you use CSP, is there a good reason to use X-XSS-Protection?

+4
source share
1 answer

Is there any good reason to use X-XSS-Protection?

With some doubts (see Kevin's comment below), the answer is probably yes.

X-Xss-Protectionactivates heuristic, reflected xss detection function. Reflected xss is supplied in the form of parameters, which makes it easy to determine the area of โ€‹โ€‹potential attack.

HTML. HTML-. javascript... CSP. CSP , javascript .

CSP, javascript, eval , , X-Xss-Protection .

CSP.

X-Xss-Protection IE . , , - IE < 12, CSP , X-Xss-Protection .

, . . . , - .

, , CSP, X-Xss-Protection

for i in twitter.com vine.co github.com
do
   echo "$i"
   curl -Is "https://$i" | grep -iE "(x-xss-protection|content-security-policy)"
done
+8

All Articles