How to temporarily disable XSS protection in modern browsers for testing?

后端 未结 7 456
一向
一向 2021-01-31 08:35

Is it possible to temporarily disable the XSS protection found in modern browsers for testing purposes?

I\'m trying to explain to a co-worker what happens when one sends

7条回答
  •  攒了一身酷
    2021-01-31 09:08

    You do not need to disable XSS protection.

    If you cannot load your page, it is because your "testing" has discovered a fault you need to fix.

    If you have no faults in your page, you will not be blocked by XSS.

    Fix your HTML so it properly "escapes" all input data from the URL, and you will not see XSS warnings.

    It is better to not disable this, because chrome is better at looking through your HTML source for those errors than your eyeballs are!

提交回复
热议问题