Skip to content

Instantly share code, notes, and snippets.

@servercharlie
Created February 21, 2017 12:19
Show Gist options
  • Save servercharlie/65768fd76e841de086cb18122dcbedc4 to your computer and use it in GitHub Desktop.
Save servercharlie/65768fd76e841de086cb18122dcbedc4 to your computer and use it in GitHub Desktop.
Fix: Cordova app can't access internet.

There also seems to be a separate issue where freshly created apps, or apps upgraded from older version of Cordova will have cordova-plugin-whitelist@1 installed automatically.

For some reason, this version of plugin does not work when installed in this automatic way (including the version installed by cordova create!) even with proper CSP and access tags.

Removing plugin and replacing it with cordova-plugin-whitelist@latest seems to fix the problem, up to and including to cause subsequent reinstallation of cordova-plugin-whitelist@1 to function properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment