| Modifier and Type | Field and Description |
|---|---|
| private final String | label
Just use a human friendly label instead of the capitalized name. |
| public static final CookieSameSite | LAX
Same-site cookies are withheld on cross-site subrequests, such as calls to load images or frames, but will be sent when a user navigates to the URL from an external site; for example, by following a link. |
| public static final CookieSameSite | NONE
The browser will send cookies with both cross-site requests and same-site requests. |
| public static final CookieSameSite | STRICT
The browser will only send cookies for same-site requests (requests originating from the site that set the cookie). |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public String | toString()
Overrides java. Returns the name of this enum constant, as contained in the declaration. |
| public static CookieSameSite | |
| public static CookieSameSite[] |
| label | back to summary |
|---|---|
| private final String label Just use a human friendly label instead of the capitalized name. | |
| LAX | back to summary |
|---|---|
| public static final CookieSameSite LAX Same-site cookies are withheld on cross-site subrequests, such as calls to load images or frames, but will be sent when a user navigates to the URL from an external site; for example, by following a link. | |
| NONE | back to summary |
|---|---|
| public static final CookieSameSite NONE The browser will send cookies with both cross-site requests and same-site requests. | |
| STRICT | back to summary |
|---|---|
| public static final CookieSameSite STRICT The browser will only send cookies for same-site requests (requests originating from the site that set the cookie). If the request originated from a different URL than the URL of the current location, none of the cookies tagged with the Strict attribute will be included. | |
| CookieSameSite | back to summary |
|---|---|
| private CookieSameSite(String label) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns the name of this enum constant, as contained in the declaration. This method may be overridden, though it typically isn't necessary or desirable. An enum class should override this method when a more "programmer-friendly" string form exists. | |
| valueOf | back to summary |
|---|---|
| public static CookieSameSite valueOf(String name) | |
| values | back to summary |
|---|---|
| public static CookieSameSite[] values() | |