简体   繁体   中英

“This content cannot be displayed in a frame” error message (Internet Explorer 11 only)

I have two frontend applications - one is a legacy AngularJS app & another is a Angular 4.x app. The AngularJS application has an iframe that when opens up an dialog which loads content from our Angular 4 app (not ideal I know).

This issue I am having on our local instance this seems fine however when I upload this to our staging servers I am unable to load the iframe in Internet Explorer 11 (it is fine in modern browsers however) and I get the following error

This content cannot be displayed in a frame To help protect the security of information you enter into this website, the publisher of this content does not allow it to be displayed in a frame.

As I am able to modify the source Angular 4.x app I have added the following meta tag :

<meta http-equiv="X-Frame-Options" content="allow">

But this change doesn't make any difference and I still get the same error message - anyone ideas on how to fix in IE11?

固定-它涉及直接在有问题的“ X-Frame Options”服务器上更改Apache设置

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM