mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-24 21:12:18 +00:00
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
1172d44397
commit
f02b77794f
@ -30,7 +30,7 @@ abstract class AbstractRequestParameterAllowFromStrategy implements AllowFromStr
|
||||
log.debug("Supplied origin '"+allowFromOrigin+"'");
|
||||
}
|
||||
if (StringUtils.hasText(allowFromOrigin) && allowed(allowFromOrigin)) {
|
||||
return "ALLOW-FROM " + allowFromOrigin;
|
||||
return allowFromOrigin;
|
||||
} else {
|
||||
return "DENY";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user