Enum GlobalHeadersConfig.ReferrerPolicy
-
- All Implemented Interfaces:
-
java.io.Serializable
,kotlin.Comparable
public enum GlobalHeadersConfig.ReferrerPolicy extends Enum<GlobalHeadersConfig.ReferrerPolicy>
Referrer-Policy
-
-
Field Summary
Fields Modifier and Type Field Description private final String
name
private final Integer
ordinal
private final EnumEntries<GlobalHeadersConfig.ReferrerPolicy>
entries
-
Enum Constant Summary
Enum Constants Enum Constant Description NO_REFERRER
The Referer header will be omitted: sent requests do not include any referrer information.
NO_REFERRER_WHEN_DOWNGRADE
Send the origin, path, and querystring in Referer when the protocol security level stays the same or improves (HTTP→HTTP, HTTP→HTTPS, HTTPS→HTTPS). Don't send the Referer header for requests to less secure destinations (HTTPS→HTTP, HTTPS→file).
ORIGIN
Send only the origin in the Referer header. For example, a document at https://example.com/page.html will send the referrer https://example.com/.
ORIGIN_WHEN_CROSS_ORIGIN
When performing a same-origin request to the same protocol level (HTTP→HTTP, HTTPS→HTTPS), send the origin, path, and query string. Send only the origin for cross-origin requests and requests to less secure destinations (HTTPS→HTTP).
SAME_ORIGIN
Send the origin, path, and query string for same-origin requests. Don't send the Referer header for cross-origin requests.
STRICT_ORIGIN
Send only the origin when the protocol security level stays the same (HTTPS→HTTPS). Don't send the Referer header to less secure destinations (HTTPS→HTTP).
STRICT_ORIGIN_WHEN_CROSS_ORIGIN
Send the origin, path, and querystring when performing a same-origin request. For cross-origin requests send the origin (only) when the protocol security level stays same (HTTPS→HTTPS). Don't send the Referer header to less secure destinations (HTTPS→HTTP).
UNSAFE_URL
Send the origin, path, and query string when performing any request, regardless of security.
-
Method Summary
Modifier and Type Method Description final GlobalHeadersConfig.ReferrerPolicy
valueOf(String value)
Returns the enum constant of this type with the specified name. final Array<GlobalHeadersConfig.ReferrerPolicy>
values()
Returns an array containing the constants of this enum type, in the order they're declared. final EnumEntries<GlobalHeadersConfig.ReferrerPolicy>
getEntries()
Referrer-Policy -
-
Method Detail
-
valueOf
final GlobalHeadersConfig.ReferrerPolicy valueOf(String value)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
-
values
final Array<GlobalHeadersConfig.ReferrerPolicy> values()
Returns an array containing the constants of this enum type, in the order they're declared.
This method may be used to iterate over the constants.
-
getEntries
final EnumEntries<GlobalHeadersConfig.ReferrerPolicy> getEntries()
Referrer-Policy
-
-
-
-