|
@@ -83,7 +83,7 @@ public final class XFrameOptionsHeaderWriter implements HeaderWriter {
|
|
public void writeHeaders(HttpServletRequest request, HttpServletResponse response) {
|
|
public void writeHeaders(HttpServletRequest request, HttpServletResponse response) {
|
|
if (XFrameOptionsMode.ALLOW_FROM.equals(frameOptionsMode)) {
|
|
if (XFrameOptionsMode.ALLOW_FROM.equals(frameOptionsMode)) {
|
|
String allowFromValue = allowFromStrategy.getAllowFromValue(request);
|
|
String allowFromValue = allowFromStrategy.getAllowFromValue(request);
|
|
- if (allowFromValue != null) {
|
|
|
|
|
|
+ if (allowFromValue != null && !allowFromValue.equals(XFrameOptionsMode.DENY.getMode())) {
|
|
response.setHeader(XFRAME_OPTIONS_HEADER,
|
|
response.setHeader(XFRAME_OPTIONS_HEADER,
|
|
XFrameOptionsMode.ALLOW_FROM.getMode() + " " + allowFromValue);
|
|
XFrameOptionsMode.ALLOW_FROM.getMode() + " " + allowFromValue);
|
|
}
|
|
}
|