How to work with cordova-plugin-whitelist
I am assuming that you have installed the “cordova-plugin-whitelist” plugin in your cordova application.
In this article i am not considering the security issue rather i am telling you the way to stop all warning and error messages that are showing due to installation of cordova-plugin-whitelist plugin.
But still you can see many warnings/errors will be displayed in console, to remove those error you can do the following
To add access origin And allowed URL and file schema, you need to add following lines in your config.xml. Which is present at root of the cordova project.
In your index.html, add the following tag in “Head” section of the page, to allow everything.
<meta http-equiv=”Content-Security-Policy” content=”default-src *; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval'”>