Hey there,
got some strange issue with <track>-Tag in a video.
The template/component code is like that:
<video >
<track label="Deutsch" kind="subtitles" srclang="de" [src]="this.ut_url">
</video>
And I tried all the Angular DOM-Functions,… but always got the same error.
Unsafe attempt to load URL https://www.blablbalbla.de/blbalblbalba.xml from frame with URL http://localhost/tabs/tab1. Domains, protocols and ports must match.
Any ideas how I can fix that? I need to show subtitles in a video if they are available.
public sanitizeURL(url) {
console.log('CAll OF SANITIZE URL');
// return this.DOMSANI.bypassSecurityTrustHtml(url); // NO!
// return this.DOMSANI.bypassSecurityTrustResourceUrl(url); // NOT!
// return this.DOMSANI.bypassSecurityTrustUrl(url); // NO WAY
// return this.DOMSANI.bypassSecurityTrustScript(url); // Still no way. omg
}