Good time of day. There is a tablet application written using JS, HTML, CSS on the Cordova platform. Does not open iFrame on the device itself. There is no error, access to all domains is open <access origin="*" /> . Everything works fine on the desktop. I tried to insert an iframe through js, to no avail. Can anyone come across? Can InAppBrowser open a link in a frame?
|
2 answers
Adding <allow-navigation href="*" /> helped
|
It strongly depends on what you open in the iframe: https://github.com/phonegap/phonegap/wiki/iFrame-Usage
This can help: https://github.com/apache/cordova-plugin-whitelist
Something from this:
<access origin="*" />
<!-- Allow iframe to https://cordova.apache.org/ --> <meta http-equiv="Content-Security-Policy" content="default-src 'self'; frame-src 'self' https://cordova.apache.org">
|