Skip to content

Instantly share code, notes, and snippets.

@nickrouty
Created September 29, 2015 17:03
Show Gist options
  • Save nickrouty/1eb523adabc547a6852e to your computer and use it in GitHub Desktop.
Save nickrouty/1eb523adabc547a6852e to your computer and use it in GitHub Desktop.
Example config.xml and index.html meta tag definition for Cordova app to handle Content Security Policy. Learn more: https://github.com/apache/cordova-plugin-whitelist#content-security-policy
<allow-navigation href="*" />
<allow-intent href="*" />
<access origin="*" />
<meta http-equiv="Content-Security-Policy" content="default-src *; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval'">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment