...
- There is no way to set a default value if a value is not added to the comments.
- There does not seem to be a way to conditionally add (e.g. by user-agent) this to the session cookie.
- Unstandardized Jetty specific approach.
9.4.27
Tomcat Jetty 9.4.27 added support for setting a global, default, same-site value from the servlet context (servlet context attribute) if not already encoded in the cookie's comment (as above) (Issue #4247 use context default for samesite cookie attribute by janbartel · Pull Request #4512 · eclipse/jetty.project · GitHub)
...