I am currently working on a JSP-Servlet application. I have successfully deployed the application using Eclipse with the default Tomcat 7 server.
However, upon deployment, I noticed that the UI renders properly in Chrome and Firefox but encounters issues in IE10 or later. The console displays a warning stating:
SEC7113: CSS was ignored due to mime type mismatch
This is how the CSS files are referenced in the application:
<!DOCTYPE html>
<html>
<head>
<title>Test</title>
<link rel="shortcut icon" href="images/rpt.ico" type="image/x-icon">
<link href="css/custom.css" rel="stylesheet" type="text/css" />
</head>
...............
</html>
I am seeking advice on how to resolve this issue. Interestingly, when running the site in Compatible mode, it renders fine. However, I want to find a solution that works even without Compatibility Mode enabled.
One observation is that the Type is not being detected as text/css. But why is this happening?