I know this is not Cordova’s forum, but I posted the same question on StackOverflow and got no answers, so I hope if anyone here has experience with similar problem.
I’ve been using cordova for almost 3 years, and used to add the following line in config.xml to whitelist all resources.
<access origin="*" />
Today, I upgraded to cordova 5, and I’ve been getting a lot of the following error
ERROR whitelist rejection: url='example.com'
I installed cordova-plugin-whitelist, and updated my config.xml with the following 3 lines
<access origin="*" /> <allow-intent href="*" /> <allow-navigation href="*" />
And added the following meta tag to my index.html twice, once with gap and another without it
<meta http-equiv="Content-Security-Policy" content="default-src * data: gap:; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval'">
and nothing happened! still getting the “ERROR whitelist rejection” in Xcode console!