I keep getting an error that says that the MIME type ('text/html') isn't executable or not a supported stylesheet MIME type and that strict MIME checking is enabled.
My code that links it is
<link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="css/heroic-features.css" rel="stylesheet">
<!-- Bootstrap core JavaScript -->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
This is how the template is supposed to look
However, this is what it looks like
Do I need to change text/html into something else?
accepts: {
"*": allTypes,
text: "text/plain",
html: "text/html",
xml: "application/xml, text/xml",
json: "application/json, text/javascript"
},
Sinatra is telling me to do this
but I've tried and it doesn't work
Is there anything I should change or add to my code so that the css works?
httpd
this requires identifying.css
files with the right MIME type (text/css
). – tadman