I’m building a mobile app using Capacitor v7 from my Vuejs frontend and I’m embedding a video player from SproutVideo using an <iframe> inside a WebView.
SproutVideo uses the HTTP referrer header to verify the domain for playback (via their “Allowed Domains” feature). However, when loading the player inside the Capacitor app, the referrer is not sent, which causes the video to be blocked.
SproutVideo support confirmed that the referrer is required to authorize playback, and recommended reaching out to the Capacitor community to understand why the referrer is missing and if there’s a workaround.
While everything works fine on my web app and android app also made with capacitor it fails on IOS, where the referrer is not sent and video is blocked.
this is how i display the iframee:
<div v-html="chapter.sprout_url" />
and sprout_url is is an iframe
How can I make it work ?