繁体   English   中英

“此内容无法在框架中显示”错误消息(仅Internet Explorer 11)

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

我有两个前端应用程序-一个是旧版AngularJS应用程序,另一个是Angular 4.x应用程序。 AngularJS应用程序具有一个iframe,当打开一个对话框时,该对话框将从Angular 4应用程序中加载内容(我知道不是很理想)。

我在本地实例上遇到的问题似乎很好,但是当我将其上传到登台服务器时,无法在Internet Explorer 11中加载iframe(但是在现代浏览器中很好),并且出现以下错误

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.

由于我能够修改源Angular 4.x应用程序,因此我添加了以下meta标签:

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

但是此更改没有任何区别,并且我仍然收到相同的错误消息-关于如何在IE11中进行修复的任何想法?

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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