1

I'm getting the below error in share point, when I have done customization in theme.css

Refused to apply style from "//mySite.com/_themes/abc/theme.css" css because its MIME type ('application/octet-stream') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

Any thoughts?

Magendran V
  • 1,411
  • 3
  • 19
  • 33

2 Answers2

2

I know this post is nearly a year old, but the links posted by Purushottam actually have tons of different solutions, most of which did not seem to pertain to SharePoint. Additionally, links are prone to disappearance. The solution that worked for me in SharePoint 2013 was adding <base href="/"> before my CSS links. I was using JSLink and some jQuery to modify a list's display and apply custom css. Here is my jQuery code that I used. Hope it helps to anyone else finding this issue in SharePoint.

    '<base href="/">',
    '<link rel="stylesheet" href="../_catalogs/masterpage/Display Templates/listAccordion.css" type="text/css">',
  );
Jason Holtzen
  • 183
  • 2
  • 10