Skip to content
Snippets Groups Projects
Commit 3ed34f67 authored by catch's avatar catch
Browse files

Issue #1203112 by droplet, dcmouyard: Added X-UA-Compatible HTTP header.

parent 3692eb3d
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -2513,6 +2513,12 @@ function drupal_deliver_html_page($page_callback_result) {
drupal_add_http_header('Content-Type', 'text/html; charset=utf-8');
}
// Send X-UA-Compatible HTTP header to force IE to use the most recent
// rendering engine or use Chrome's frame rendering engine if available.
if (is_null(drupal_get_http_header('X-UA-Compatible'))) {
drupal_add_http_header('X-UA-Compatible', 'IE=edge,chrome=1');
}
// Send appropriate HTTP-Header for browsers and search engines.
global $language_interface;
drupal_add_http_header('Content-Language', $language_interface->langcode);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment