Spring Security - 多个框架选项

时间:2016-02-19 07:09:41

标签: iframe spring-security

我有两个网络应用程序。第一个在iFrame中显示第二个。这两个应用程序还可以通过Intranet和Internet自行访问。

现在我的安全设置的http元素中有以下安全设置:

<headers>
    <frame-options policy="SAMEORIGIN" />
    <frame-options policy="ALLOW-FROM" strategy="whitelist" value="https://www.myurl.com" />
</headers>

通过Intranet访问工作正常,帧内容被加载。通过互联网无法加载内容,框架显示错误&#34;此内容无法在框架中显示。&#34;

感谢任何帮助。

1 个答案:

答案 0 :(得分:0)

找到解决方案。不必设置特殊标头。如果我完全删除标题的安全设置,它就会起作用。