Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

issues with iframe in phonegap

I have an IOS App which needs to load some external url in an iframe inside the app.

My code looks like

<body>

    <iframe width="560" height="315" src="https://www.google.co.in/" frameborder="0" allowfullscreen></iframe>
<div class="footer"></div>

</body>

cordova plist:

OpenAllWhitelistURLsInWebView: YES
ExternalHosts: *

but I am getting an error whenever I tried to load the page

"Failed to load webpage with error: The operation couldn’t be completed. (NSURLErrorDomain error -999.)"

I am not able to load the external url

Could anyone help me out to solve this

like image 594
Sreehari Avatar asked Dec 08 '25 13:12

Sreehari


1 Answers

update your config.xml

<access origin="*" />
like image 186
Nurdin Avatar answered Dec 10 '25 03:12

Nurdin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!