Skip to content

Commit

Permalink
Drop X-XSS-Protection header usage as per its deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoColomb committed Jun 13, 2021
1 parent 4556277 commit 836467c
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 46 deletions.
1 change: 0 additions & 1 deletion h5bp/basic.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@
include h5bp/security/referrer-policy.conf;
include h5bp/security/x-content-type-options.conf;
include h5bp/security/x-frame-options.conf;
include h5bp/security/x-xss-protection.conf;
include h5bp/location/security_file_access.conf;
include h5bp/cross-origin/requests.conf;
38 changes: 0 additions & 38 deletions h5bp/security/x-xss-protection.conf

This file was deleted.

7 changes: 0 additions & 7 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,6 @@ http {
# Specify file cache expiration.
include h5bp/web_performance/cache_expiration.conf;

# Add X-XSS-Protection for HTML documents.
# h5bp/security/x-xss-protection.conf
map $sent_http_content_type $x_xss_protection {
# (1) (2)
~*text/html "1; mode=block";
}

# Add X-Frame-Options for HTML documents.
# h5bp/security/x-frame-options.conf
map $sent_http_content_type $x_frame_options {
Expand Down

0 comments on commit 836467c

Please sign in to comment.