In FF and all, my javascript works fine. But in Chrome it gives this message:
Resource interpreted as script but transferred with MIME type text/plai
If you are using AdonisJS (REST API, for instance), one way to avoid this is to define the response header this way:
response.safeHeader('Content-type', 'application/json')