Iframes unsafe url issue in Beta 11


#1

Hi, I just upgraded my project to the Beta 11 and got errors with my iframes, I managed to solve one of my problem with the DomSanitizationService but it only works on a single iframe, it seems to not work with *ngFor.

There’s my code

<ion-slides [options]="slideOptions">
    <ion-slide *ngFor="let tab of tabs">
        <iframe class="myframe" [src]=url></iframe>
        <div tappable class="overlay" (click)="getPosition($event)"></div>
    </ion-slide>
</ion-slides>

With a single iframe i just have to give the url this value in my ts :

this.url = sanitizer.bypassSecurityTrustResourceUrl("some/url.html");

But I can’t manage to make it work with dynamically with *ngFor.

I just always end up with

ORIGINAL EXCEPTION: Error: unsafe value used in a resource URL context


#2

I would like this answered as well!