-
Notifications
You must be signed in to change notification settings - Fork 53
TWA 0211
Ulrich Berntien edited this page Aug 10, 2020
·
1 revision
"X-XSS-Protection sanitizes but doesn't block, consider mode=block?"
The server sends not X-XSS-Protection: 1; mode=block
. The server sends only X-XSS-Protection: 1
alone or with another mode.
If a web browser with enabled XSS (cross-site scripting) filtering detects a XSS attack several reactions of the web browser are possible.
With mode=block
the web browser will not render and display the page.
This is a safe reaction of the web browser should be selected by the web server via X-XSS-Protection.
Set the X-XSS-Protection to 1; mode=block
in the web server configuration or in the web application (e.g. PHP scripts).