0
votes

I am using an iFrame in my ionic 2 app to show my facebook page. But I get this error: Refused to display 'https://m.facebook.com/mypagedomain' in a frame because it set 'X-Frame-Options' to 'deny'.

The reason I am using iFrame not inappbrowser plugin because I want to show my app header all the time. In inappbrowser I am not able to show header.

Any suggestions?

1

1 Answers

0
votes

You should use the Themeable Browser plugin. It's like the InAppBrowser but it allows styling so that it can match the theme of your app.

Ionic Native link: https://ionicframework.com/docs/native/themeable-browser/

Github repo: https://github.com/initialxy/cordova-plugin-themeablebrowser