Skip to content

Commit

Permalink
Drop X-UA-Compatible header usage as per IE deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoColomb committed Jun 13, 2021
1 parent 501444a commit 4556277
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 26 deletions.
1 change: 0 additions & 1 deletion h5bp/basic.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Nginx Server Configs | MIT License
# https://github.com/h5bp/server-configs-nginx

include h5bp/internet_explorer/x-ua-compatible.conf;
include h5bp/security/referrer-policy.conf;
include h5bp/security/x-content-type-options.conf;
include h5bp/security/x-frame-options.conf;
Expand Down
19 changes: 0 additions & 19 deletions h5bp/internet_explorer/x-ua-compatible.conf

This file was deleted.

6 changes: 0 additions & 6 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,6 @@ http {
~*text/(css|html|javascript)|application\/pdf|xml "strict-origin-when-cross-origin";
}

# Add X-UA-Compatible for HTML documents.
# h5bp/internet_explorer/x-ua-compatible.conf
map $sent_http_content_type $x_ua_compatible {
~*text/html "IE=edge";
}

# Add Access-Control-Allow-Origin.
# h5bp/cross-origin/requests.conf
map $sent_http_content_type $cors {
Expand Down

0 comments on commit 4556277

Please sign in to comment.