press icon indicating copy to clipboard operation
press copied to clipboard

Refused to apply style

Open barredterra opened this issue 1 year ago • 2 comments

Our wiki page, running on master branch, doesn't render correctly and the following errors show up in the browser console:

Refused to apply style from 'https://my.wiki.com/wiki.bundle.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

/wiki.bundle.js:1 GET https://my.wiki.com/wiki.bundle.js net::ERR_ABORTED 404 (Not Found)

my-wiki-page:1 Refused to apply style from 'https://my.wiki.com/files/website_theme/frappe/public/css/fonts/inter/inter.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

my-wiki-page:1 Refused to execute script from 'https://my.wiki.com/wiki.bundle.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.

my-wiki-page:3250 Uncaught ReferenceError: RenderWiki is not defined at my-wiki-page:3250:22

barredterra avatar Sep 03 '24 10:09 barredterra

Is your site on FC? Can you try rebuild and see if that fix the issue?

BreadGenie avatar Sep 03 '24 12:09 BreadGenie

Yes, it is on a public FC bench. I tried rebuilding via Website Theme, that didn't help.

barredterra avatar Sep 03 '24 12:09 barredterra