开发者

Angular ignores the iframe element

I've found Angular 15 to be ignoring the iframe element. I've found the following existing example on stackblitz that is not working either. In both cases I've found the iframe element to be simply missing from the dom开发者_如何学C.

https://stackblitz.com/edit/angular-iframe-src?file=src/app/app.component.html

Is this a bug in Angular? Or both me and the example are missing something?


The pages you are trying to frame forbid being framed and throw a "Refused to display document because display forbidden by X-Frame-Options." error in Chrome.

If they're your pages, then remove the frame limiter. Otherwise, respect the page's author's wishes and DON'T FRAME THEM.

Working StackBlitz

Reference

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜