Skip to content
Snippets Groups Projects
Unverified Commit 4c6d65d3 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3214211 by gapple, longwave: Stop setting X-UA-Compatible header

parent 76c0ec23
No related branches found
No related tags found
No related merge requests found
......@@ -117,10 +117,6 @@ public function onRespond(ResponseEvent $event) {
$request = $event->getRequest();
$response = $event->getResponse();
// Set the X-UA-Compatible HTTP header to force IE to use the most recent
// rendering engine.
$response->headers->set('X-UA-Compatible', 'IE=edge', FALSE);
// Set the Content-language header.
$response->headers->set('Content-language', $this->languageManager->getCurrentLanguage()->getId());
......
......@@ -42,7 +42,6 @@ public function testFinishResponseSubscriber() {
$session = $this->getSession();
// Check expected headers from FinishResponseSubscriber.
$this->assertSession()->responseHeaderEquals('X-UA-Compatible', 'IE=edge');
$this->assertSession()->responseHeaderEquals('Content-language', 'en');
$this->assertSession()->responseHeaderEquals('X-Content-Type-Options', 'nosniff');
$this->assertSession()->responseHeaderEquals('X-Frame-Options', 'SAMEORIGIN');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment