Cordova plugin error: Resource interpreted as Script but transferred with MIME type text/plain

2k Views Asked by At

I'm using Cordova 4 with Cross-walk and on android it throws the 'Resource interpreted as Script but transferred with MIME type text/plain' error for all plugins' javascript files.

I have already added the Whitelist plugin and added the following to my index.html file:

<meta http-equiv="Content-Type" content="application/javascript; charset=UTF-8">
<meta http-equiv="Content-Security-Policy" content="default-src *; style-src * &apos;unsafe-inline&apos;; script-src * &apos;unsafe-inline&apos; &apos;unsafe-eval&apos;">

and these to the config.xml

  <allow-navigation href="*"/>
  <allow-intent href="*"/>
1

There are 1 best solutions below

1
On BEST ANSWER

I believe those are not 'real' errors and Chrome specific: see this SO answer