I am developing a Jsp-Servlet application.
I deployed the application using Eclipse with Default Tomcat 7.
However after deploying the application, in Chrome/Firefox the UI gets rendered properly.
Where as in IE10 or later is showing this warning in console and none of the UI elements are loaded.
SEC7113: CSS was ignored due to mime type mismatch
This is how the css files are referred
<!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>
How do I solve this issue?
Update If I run the site in Compatible mode, it's rendering fine. But how should I make it work even if it's not enabled.
I can see that Type is not coming as text/css. But Why?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…