What is the http-header “X-XSS-Protection”?

后端 未结 5 1497
慢半拍i
慢半拍i 2020-11-28 19:27

So I\'ve been toying around with HTTP for fun in telnet now (i.e. just typing in telnet google.com 80 and putting in random GETs and POSTs with different header

5条回答
  •  半阙折子戏
    2020-11-28 20:27

    You can see in this List of useful HTTP headers.

    X-XSS-Protection: This header enables the Cross-site scripting (XSS) filter built into most recent web browsers. It's usually enabled by default anyway, so the role of this header is to re-enable the filter for this particular website if it was disabled by the user. This header is supported in IE 8+, and in Chrome (not sure which versions). The anti-XSS filter was added in Chrome 4. Its unknown if that version honored this header.

提交回复
热议问题