Skip to main content

Notifications

Community site session details

Community site session details

Session Id : yTRbCWJrKmkJWpRgT14xIc
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 Super User 2025 Season 1

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 Super User 2025 Season 1 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 Super User 2025 Season 1 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,143 Super User 2025 Season 1 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 Super User 2025 Season 1 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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,645 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard
Loading started