Package io.quarkus.vertx.http.runtime
Class SameSiteNoneIncompatibleClientChecker
java.lang.Object
io.quarkus.vertx.http.runtime.SameSiteNoneIncompatibleClientChecker
A utility class that can check known user agents which are known to be incompatible with SameSite=None attribute.
- Versions of Chrome from Chrome 51 to Chrome 66 (inclusive on both ends). These Chrome versions will reject a cookie with `SameSite=None`. This also affects older versions of Chromium-derived browsers, as well as Android WebView. This behavior was correct according to the version of the cookie specification at that time, but with the addition of the new "None" value to the specification, this behavior has been updated in Chrome 67 and newer. (Prior to Chrome 51, the SameSite attribute was ignored entirely and all cookies were treated as if they were `SameSite=None`.)
- Versions of UC Browser on Android prior to version 12.13.2. Older versions will reject a cookie with `SameSite=None`. This behavior was correct according to the version of the cookie specification at that time, but with the addition of the new "None" value to the specification, this behavior has been updated in newer versions of UC Browser.
- Versions of Safari and embedded browsers on MacOS 10.14 and all browsers on iOS 12. These versions will erroneously treat cookies marked with `SameSite=None` as if they were marked `SameSite=Strict`. This bug has been fixed on newer versions of iOS and MacOS.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static booleandropsUnrecognizedSameSiteCookies(String useragent) (package private) static booleanhasWebKitSameSiteBug(String useragent) (package private) static booleanisChromiumBased(String useragent) (package private) static booleanisChromiumVersionAtLeast(int major, String useragent) (package private) static booleanisIosVersion(int major, String useragent) (package private) static booleanisMacEmbeddedBrowser(String useragent) (package private) static booleanisMacosxVersion(int major, int minor, String useragent) (package private) static booleanstatic booleanisSameSiteNoneIncompatible(String useragent) (package private) static booleanisUcBrowser(String useragent) (package private) static booleanisUcBrowserVersionAtLeast(int major, int minor, int build, String useragent) static booleanshouldSendSameSiteNone(String useragent)
-
Constructor Details
-
SameSiteNoneIncompatibleClientChecker
SameSiteNoneIncompatibleClientChecker()
-
-
Method Details
-
shouldSendSameSiteNone
-
isSameSiteNoneIncompatible
-
hasWebKitSameSiteBug
-
dropsUnrecognizedSameSiteCookies
-
isIosVersion
-
isMacosxVersion
-
isSafari
-
isMacEmbeddedBrowser
-
isChromiumBased
-
isChromiumVersionAtLeast
-
isUcBrowser
-
isUcBrowserVersionAtLeast
-