CookieSameSiteSupplier
Strategy interface that can be used with ConfigurableServletWebServerFactory implementations in order to supply custom SameSite values for specific cookies.
Basic CookieSameSiteSupplier implementations can be constructed using the of...
factory methods, typically combined with name matching. For example:
CookieSameSiteSupplier.ofLax().whenHasName("mycookie");
Content copied to clipboard
Author
Phillip Webb
Since
2.6.0
See also
Functions
Link copied to clipboard
Get the SameSite values that should be used for the given Cookie.
Link copied to clipboard
Return a new CookieSameSiteSupplier that always returns the given SameSite value.
Link copied to clipboard
Return a new CookieSameSiteSupplier that always returns LAX.
Link copied to clipboard
Return a new CookieSameSiteSupplier that always returns NONE.
Link copied to clipboard
Return a new CookieSameSiteSupplier that always returns STRICT.
Link copied to clipboard
Limit this supplier so that it's only called if the predicate accepts the Cookie.
Link copied to clipboard
Limit this supplier so that it's only called if the Cookie has the given name.
Link copied to clipboard
Limit this supplier so that it's only called if the Cookie name matches the given regex.
Limit this supplier so that it's only called if the Cookie name matches the given Pattern.