none
Refused to load the script 'http://localhost:4400/index.js' RRS feed

  • Question

  • Hello

    I am new to Cordova in visual studio.  I am trying to run a very simple app that responds to a button click but the eventlistener is not being reached because of the above error.   The full error is:

    Refused to load the script 'http://localhost:4400/index.js' because it violates the following Content Security Policy directive: "script-src 'unsafe-inline'". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.

    My content-security-policy is:

     <meta http-equiv="Content-Security-Policy" content="default-src 'self' data: gap: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self';script-src 'unsafe-inline' ; media-src *">

    I have searched for help but everything I have read suggest my CSP declaration is correct.  Can anyone help?

    Brad

    Wednesday, February 20, 2019 5:09 AM