Skip to content
This repository was archived by the owner on Jul 11, 2018. It is now read-only.

Added Content Security Policy meta tag in index.html #18

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

abrbhat
Copy link

@abrbhat abrbhat commented Aug 5, 2016

Without the gap: parameter, the JS context is not able to talk to the native plugins in iOS UIWebView. I discovered this after much frustration and only after seeing the index.html file in a fresh cordova app I created specifically while debugging this issue. It is extremely difficult to find this issue mentioned in any of the online forums and therefore almost impossible to resolve for a beginner. Therefore, I suggest that the CSP tag be added in the default starter app to provide some hints that such an issue can exist.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant