I have a page in my Ionic app that displays a WebView (with an iframe) in it, the problem is that it works well only if is a normal HTTP web page, it doesn't work with almost any HTTPS page like Google, Twitter, etc. The only HTTPS page that seems to be working in the app is https://www.httpsnow.org/ for some reason.
The code line is simply this:
<iframe src="https://www.example.com/" height="400px" width="350px"></iframe>
I need to display HTTPS WebViews in my app, preferably without having to use Cordova's inappbrowser. Is there a way to do it with iframe or otherwise?
Most larger organizations, including Google, Twitter, etc. set an X-Frame-Options
header to SAMEORIGIN
to prevent framing, as it has been used abusively in the past.
https://developer.mozilla.org/en-US/docs/Web/HTTP/X-Frame-Options
For security reasons, this is not something you can override.