error Refused to execute script, because its MIME type ('text/html') is not executable When migrated my site from localhost to webserver. I see an error in chromeconsole. I used git clone to transfer my site.


  Refused to execute script from http://mydomain because its MIME type
  ('text/html') is not executable, and strict MIME type checking is
  enabled.


Mysite is unformatted.
Theme bartik, core drupal-8.2.5 

It's running smooth on localhost.

I contacted serversupport, they say it's a debug problem and not a server problem.

there is an refer in the stylesheet to ojqe8x, but is empty, how to solve this?

&lt;title&gt;mysite | mysite&lt;/title&gt;
&lt;link rel="stylesheet" href="/joehoe/mysite/?ojqe8x" media="all" /&gt;







Edit: 

on this domain http://pcwebber.nl/alex/lkch/

I get this error Refused to execute script from 'http://pcwebber.nl/alex/lkch/' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
You are asking the wrong question.... 

When you look at your page's source code, you'll see this:

&lt;link rel="stylesheet" href="/alex/lkch/?ojqox6" media="all" /&gt;
&lt;link rel="stylesheet" href="/alex/lkch/?ojqox6" media="all" /&gt;
&lt;link rel="stylesheet" href="/alex/lkch/sites/default/files/css/css_Z5jMg7P_bjcW9iUzujI7oaechMyxQTUqZhHJ_aYSq04.css?ojqox6" media="print" /&gt;


The last one is a real CSS file. The first two are not (those link to your front page). So your browser attempts to load a stylesheet, but is receiving your front page instead. That is what is triggering the error; The browser expects CSS and is instead served HTML.

The real question is, where do these 2 lines come from... And that is hard to tell, since everything in Drupal can do that. 

Things you can try;


Disable CSS aggregation in Administration > Configuration > Development (you want to enable this once you go live) 
Disable all non core modules (if any)
Try a different theme


It could be something coming from a custom template as well.