SEC-2511: Remove double ALLOW-FROM from X-Frame-Options header.
The interface documentation for getAllowFromValue states: Gets the value for ALLOW-FROM excluding the ALLOW-FROM.
This commit is contained in:
parent
4cdeacc277
commit
6de138c2f2
|
@ -30,7 +30,7 @@ abstract class AbstractRequestParameterAllowFromStrategy implements AllowFromStr
|
||||||
log.debug("Supplied origin '"+allowFromOrigin+"'");
|
log.debug("Supplied origin '"+allowFromOrigin+"'");
|
||||||
}
|
}
|
||||||
if (StringUtils.hasText(allowFromOrigin) && allowed(allowFromOrigin)) {
|
if (StringUtils.hasText(allowFromOrigin) && allowed(allowFromOrigin)) {
|
||||||
return "ALLOW-FROM " + allowFromOrigin;
|
return allowFromOrigin;
|
||||||
} else {
|
} else {
|
||||||
return "DENY";
|
return "DENY";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue