angularjs - angular/ionic iframe issue on ios -
i have issue ionic app on iphone. ionic writes index.html:
<iframe src="gap://ready" style="display:none;">...</iframe>
the console output of app loops error 40 times per second:
refused load gap://ready because appears in neither child-src directive nor default-src directive of content security policy.
i guess everytime dirtycheck of angular working, error thrown. iframe comming , how can rid of iframe , error?
solution, add gap: following meta tag in index.html
:
<meta http-equiv="content-security-policy" content="default-src * data: cdvfile: gap:; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval'"/>
Comments
Post a Comment