public enum AllowForwardHeaders extends Enum<AllowForwardHeaders>
Enum Constant and Description |
---|
ALL
|
FORWARD
|
X_FORWARD
Only process the non standard but widely used
X-Forward-* headers. |
Modifier and Type | Method and Description |
---|---|
static AllowForwardHeaders |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AllowForwardHeaders[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AllowForwardHeaders NONE
public static final AllowForwardHeaders FORWARD
Forward
header as defined by https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Forwardedpublic static final AllowForwardHeaders X_FORWARD
X-Forward-*
headers.
These headers are not official standards but widely used. Users are advised to avoid them for new applications.public static final AllowForwardHeaders ALL
FORWARD
and X_FORWARD
. Be aware that mixing the 2 headers can open
security holes as specially crafted requests that are not validated as proxy level can allow bypassing
the proxy desired forward value.
For example, a proxy will add the X-Forward-*
headers to a request but not filter out if the original
request includes the Forward
header.public static AllowForwardHeaders[] values()
for (AllowForwardHeaders c : AllowForwardHeaders.values()) System.out.println(c);
public static AllowForwardHeaders valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2024 Eclipse. All rights reserved.