Refused to execute script from ‘***’ because its MIME type (‘text/html’) is not executable, and strict MIME type checking is enabled

The error is most likely correct (and is most likely related to browser upgrade than any WP version change) and your theme/plugin does fishy things. The ajax enedpoint should be uses to return data – html/json/xml.

WordPress will use the text/html mime type for all responses from the ajax endpoint without any simple way I can see to override it.

In addition to your existing problem, the ajax endpoint is blocked to search engines so you might be hurting your SEO if this code is used on the front end.

If it is not a theme you develop yourself, you should contact the theme/plugin author to fix the issue.

Leave a Comment