I am developing a Phonegap application that not only runs on the phone but also on the desktop's browser. The application needs to access the resources in the www directory and a few js files that reside on external sites. So far my meta tag looks like this:
<meta http-equiv="Content-Security-Policy" content="default-src 'unsafe-inline' localhost:*/* 'self' *.shlepz.com *.googleapis.com https://www.youtube.com *.gstatic.com *.ytimg.com; ">
With this meta tag I am still receiving the error, "127.0.0.1/:195 Refused to connect to 'ws://127.0.0.1:8080//ws' because it violates the following Content Security Policy directive:
I have no idea what ws is. How do I change the localhost entry in the meta tag to make the error go away? To state the incredibly obvious, I don't know what the port number will be until the application is loaded. Most of the time it is 8080 but not always.
Thank you for your time,