我正在试图用露天展示iframe,但却给了我错误
拒绝在框架中显示“url”,因为它将“X-Frame-Options”设置为“SAMEORIGIN”。
我遵循本教程:Alfresco Iframe
我修改了share-security-config.xml,试图
<config evaluator="string-compare" condition="SecurityHeadersPolicy">
<headers>
<header>
<name>X-Frame-Options</name>
<enabled>false</enabled>
</header>
</headers>
这个
<config evaluator="string-compare" condition="IFramePolicy" replace="true">
<same-domain>allow</same-domain>
<cross-domain>
<url>http://mytrustdomain.com/</url>
</cross-domain>
</config>
但是仍然给我同样的错误,可能是Alfresco没有刷新配置文件或者可能是什么问题?
答案 0 :(得分:0)
始终从Alfresco修改某个文件,您需要重新启动服务器,停止tomcat服务并重新启动。
如果没有停止tomcat,你将看不到更改,快速解决方案,重置服务器,另一个解决方案是:
Windows:tasklist
获取PID,然后TASKKILL /f /PID x
Linux:ps -ef | grep tomcat
然后kill -9 PID