如何使用spring java config设置值为allow-from的X-Frame-Options响应头?
http.headers().disable()
.addHeaderWriter(new XFrameOptionsHeaderWriter(
new WhiteListedAllowFromStrategy(
Arrays.asList("https://example1.com", "https://example2.com"))));
Run Code Online (Sandbox Code Playgroud)
在Http Response标题中,我得到:
X-Frame-Options:"ALLOW-FROM DENY".
为什么我的起源不在标题值中列出?
spring-security http-headers x-frame-options spring-java-config