{"action":"created","issue":{"url":"https://api.github.com/repos/spring-projects/spring-boot/issues/3633","labels_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/3633/labels{/name}","comments_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/3633/comments","events_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/3633/events","html_url":"https://github.com/spring-projects/spring-boot/issues/3633","id":98331344,"number":3633,"title":"Whitelabel page is not displayed in IE 11 in Compatibility Mode","user":{"login":"trung","id":24930,"avatar_url":"https://avatars.githubusercontent.com/u/24930?v=3","gravatar_id":"","url":"https://api.github.com/users/trung","html_url":"https://github.com/trung","followers_url":"https://api.github.com/users/trung/followers","following_url":"https://api.github.com/users/trung/following{/other_user}","gists_url":"https://api.github.com/users/trung/gists{/gist_id}","starred_url":"https://api.github.com/users/trung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trung/subscriptions","organizations_url":"https://api.github.com/users/trung/orgs","repos_url":"https://api.github.com/users/trung/repos","events_url":"https://api.github.com/users/trung/events{/privacy}","received_events_url":"https://api.github.com/users/trung/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-31T07:18:14Z","updated_at":"2015-07-31T09:59:25Z","closed_at":null,"body":"In IE11, Tools -> Compatibility View Settings -> Add localhost in the list\r\nVisit http://localhost:8080/foo\r\n\r\nIt displays IE 404 instead of Spring Boot Whitelabel page.\r\n\r\nThis is due to the Accept header for Compatibility mode contains:\r\n`application/x-ms-application, image/jpeg, application/xaml+xml, image/gif, image/pjpeg, application/x-ms-xbap, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*`\r\n\r\nHence the BasicErrorController returns the ResponseEntity instead of the \"error\" view.\r\n\r\nPer https://developer.mozilla.org/en-US/docs/Web/HTTP/Content_negotiation\r\n\r\nNot sure how best we can fix this, probably declare one more content type in the \"produces\" value in BasicErrorController#errorHtml?\r\n"},"comment":{"url":"https://api.github.com/repos/spring-projects/spring-boot/issues/comments/126630804","html_url":"https://github.com/spring-projects/spring-boot/issues/3633#issuecomment-126630804","issue_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/3633","id":126630804,"user":{"login":"bclozel","id":103264,"avatar_url":"https://avatars.githubusercontent.com/u/103264?v=3","gravatar_id":"","url":"https://api.github.com/users/bclozel","html_url":"https://github.com/bclozel","followers_url":"https://api.github.com/users/bclozel/followers","following_url":"https://api.github.com/users/bclozel/following{/other_user}","gists_url":"https://api.github.com/users/bclozel/gists{/gist_id}","starred_url":"https://api.github.com/users/bclozel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bclozel/subscriptions","organizations_url":"https://api.github.com/users/bclozel/orgs","repos_url":"https://api.github.com/users/bclozel/repos","events_url":"https://api.github.com/users/bclozel/events{/privacy}","received_events_url":"https://api.github.com/users/bclozel/received_events","type":"User","site_admin":false},"created_at":"2015-07-31T09:59:25Z","updated_at":"2015-07-31T09:59:25Z","body":"Given the current method signatures, I don't know what we could do to fix this...\r\n\r\n```java\r\n\t@RequestMapping(value = \"${error.path:/error}\", produces = \"text/html\")\r\n\tpublic ModelAndView errorHtml(HttpServletRequest request) {\r\n\r\n\t@RequestMapping(value = \"${error.path:/error}\")\r\n\t@ResponseBody\r\n\tpublic ResponseEntity<Map<String, Object>> error(HttpServletRequest request) {\r\n```\r\n\r\nMimetypes `application/x-ms-application, image/jpeg, application/xaml+xml, image/gif, image/pjpeg, application/x-ms-xbap, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword` are all application/file related and not suitable for HTML output.\r\nWriting HTML in response of `*/*` would work, but this would also mean that content negotiation is broken for JSON, XML, etc.\r\n\r\nFor that *very specific* use case, I'd try to write a Servlet Filter that adds a `text/html` mimetype to HTTP requests coming from that particular client. It will be a problem for all endpoints anyway."}}