web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : ULNpe5HqJy38JL1E64jYMb
Power Pages - General Discussions
Answered

Refused to apply style because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

Like (0) ShareShare
ReportReport
Posted on 26 Jan 2024 06:12:15 by 2,194 Moderator

Hello, 

I am working on a Power Pages website. We seem to encounter this error on every page. I've tried searching for thumbnail.css but couldn't find any documentation regarding it. Its not even mentioned here:
Power Pages: Manage CSS  

Can somebody please explain the root & solution of these errors?

 

ShaheerAhmad_0-1706249181254.png

Refused to apply style from 'https://<url>/thumbnail.css?1706249049000' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

Categories:
  • Verified answer
    Shaheer Ahmad Profile Picture
    2,194 Moderator on 29 Jan 2024 at 07:29:00
    Re: Refused to apply style because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

    I now downloaded the thumbnail.css from portal's web file and stored it as a local backup. After opening the CSS file, I noticed HTML/JS content from my home screen. I created a copy and removed all the HTML and JS and left the CSS as is (Although it was the CSS from my portal's home page). and uploaded the file. Now the error's gone. Not sure if it will effect any functionality. If it does, I'll add a new reply to this thread. Meanwhile everything is working fine.

  • Shaheer Ahmad Profile Picture
    2,194 Moderator on 29 Jan 2024 at 07:25:25
    Re: Refused to apply style because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

    I am not sure if this error was existing before, I only got to know about it when we sent the portal over for testing.

  • Lucas001 Profile Picture
    2,258 Super User 2025 Season 2 on 29 Jan 2024 at 06:52:41
    Re: Refused to apply style because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

    Hi @ShaheerAhmad,

     

    did you encounter the error lately and has been fine before?

    Also is the page already in production? I had similar issue a long time ago and only my dev page was effected.

    Somehow it healed itself after some days as Microsoft is continuously working in the backend.

  • Shaheer Ahmad Profile Picture
    2,194 Moderator on 29 Jan 2024 at 05:13:50
    Re: Refused to apply style because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

    I've tried pasting the URL in browser. It's accessible but it's returning a kind of a bit messed up version of my home page. 

     

    ShaheerAhmad_0-1706505521090.png

     

    Also these errors appear in the console when i accessed the thumbnail.css url

  • Akah Mandela Profile Picture
    445 on 27 Jan 2024 at 18:00:38
    Re: Refused to apply style because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
    • Try using another browser and see if you face same issue 
    • Check the URL of the CSS file to ensure its accessible via the url. you can do that by copying 'https://<url>/thumbnail.css?1706249049000' and pasting in another tab in the browser, this should return plain CSS.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
Lucas001 Profile Picture

Lucas001 60 Super User 2025 Season 2

#2
Fubar Profile Picture

Fubar 55 Super User 2025 Season 2

#3
surya narayanan Profile Picture

surya narayanan 35

Loading complete