How can I render 3rd url's page in HTML DOM directly with customized header in Ionic Capacitor?

I used InAppBrowser.openInWebView to open 3rd page with custom headers. And it’s being shown using InAppBrowser. But I want to show the page under an html element directly. In react-native, it’s supported by using WebView tag from react-native-webview. Is this possibel in Ionic capacitor also?

Not clear what do you want… But, I may suggest you to use the InAppBrowser.openInWebView with an element already done finaly. Hope it helps you.

I have a similar problem. I tried using an iframe, but got CORS problems. I need a solution for this too.

Did you check react-native-webview?

If we use InAppBrowser.openInWebView, an external browser is open, but I want to inject under an element like iframe. in react-native is possible. but ionic capacitor doesn’t support that package yet.

So did you find the solution?