Reputation: 327
I am trying to check whether my cordova 5.1.1 angular app is accessible . So i have enabled talkback on android. Android tried to load http://ssl.gstatic.com/accessibility/javascript/android/chromeandroidvox.js. but it says "failed to load resource". I have given the access origin="http://ssl.gstatic.com/*". In index.html https://ssl.gstatic.com; style-src 'self' 'unsafe-inline' *; script-src 'self' 'unsafe-inline' 'unsafe-eval' *; img-src *; connect-src *; font-src *; "> is also added. Is anyone found any solution for this
Cordova version 5.1.1 Android : 4.4.2 Angular :1.4.0
Upvotes: 0
Views: 368
Reputation: 3101
To access the Google map API, I use:
<meta http-equiv="Content-Security-Policy" content="
default-src 'self' data: gap:
https://ssl.gstatic.com;
script-src 'self' 'unsafe-inline' 'unsafe-eval'
https://*.gstatic.com https://*.googleapis.com;
style-src 'self' 'unsafe-inline' 'unsafe-eval'
https://*.gstatic.com https://*.googleapis.com;
font-src 'self' 'unsafe-inline' 'unsafe-eval'
https://*.gstatic.com https://*.googleapis.com;
img-src 'self' 'unsafe-inline' 'unsafe-eval' data:
https://*.gstatic.com https://*.googleapis.com;
media-src *">
Upvotes: 1