Buduję stronę. W trybie dewelopersyjnym dobrze ładuje pliki .js. Jednak w trybie produkcyjnym, występuje następujący błąd:Railsy zwracają .js z typem MIME "text/html"
Refused to execute script from 'http://bowuzhi.herokuapp.com/javascripts/items.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
a zawartość http://bowuzhi.herokuapp.com/javascripts/items.js jest html:
<div class='page-header'>
<a class="btn btn-primary" href="/zh-TW/items/new"><span class='glyphicon glyphicon-plus'></span>
New
</a><h1>Catalog</h1>
</div>
<div class='row' id='items'>
</div>
<div class='row'>
<div class='col-md-12'>
</div>
</div>
<script src="/javascripts/items.js"></script>
Ta strona jest na Heroku: http://bowuzhi.herokuapp.com.
Dlaczego .js okazuje się być html?
Dzięki! Dokładnie ten sam problem! –