Interface SameSiteCookieConfig


public interface SameSiteCookieConfig
Configuration that allows for automatically setting the SameSite attribute on cookies

As some API's (Servlet, JAX-RS) don't current support this attribute this config allows it to be set based on the cookie name pattern.

  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    If this is true then the 'secure' attribute will automatically be sent on cookies with a SameSite attribute of None.
    boolean
    If the cookie pattern is case-sensitive
    boolean
    Some User Agents break when sent SameSite=None, this will detect them and avoid sending the value
    io.vertx.core.http.CookieSameSite
    The value to set in the samesite attribute
  • Method Details

    • caseSensitive

      @WithDefault("false") boolean caseSensitive()
      If the cookie pattern is case-sensitive
    • value

      io.vertx.core.http.CookieSameSite value()
      The value to set in the samesite attribute
    • enableClientChecker

      @WithDefault("true") boolean enableClientChecker()
      Some User Agents break when sent SameSite=None, this will detect them and avoid sending the value
    • addSecureForNone

      @WithDefault("true") boolean addSecureForNone()
      If this is true then the 'secure' attribute will automatically be sent on cookies with a SameSite attribute of None.