Was having trouble trying to figure out why Cordova plugins would not load with this template. In some cases, with the File plugin, deviceready would not even fire.
Hooked my emulator up to the Safari web inspector and saw that the app is throwing this a few times per second:
Refused to load frame 'gap://ready' because it violates the following Content Security Policy directive: "default-src 'self'". Note that 'frame-src' was not explicitly set, so 'default-src' is used as a fallback.
W/o the file plugin added to the app, I still get the error, but deviceready fires.
If I comment out the CSP in index.html, everything runs fine (but insecure).
Was having trouble trying to figure out why Cordova plugins would not load with this template. In some cases, with the File plugin, deviceready would not even fire.
Hooked my emulator up to the Safari web inspector and saw that the app is throwing this a few times per second:
W/o the file plugin added to the app, I still get the error, but deviceready fires.
If I comment out the CSP in index.html, everything runs fine (but insecure).