title: How to set SameSite attribute?
body: <p>I have a problem with setting SameSite attribute in Cookie. I wanted to set this attribute, but neither <code>javax.servlet.http.Cookie</code> nor <code>java.net.HttpCookie</code> provide method to deal with it. Therefore, I have an idea to create a response <code>javax.servlet.Filter</code> that catch "Set-Cookie" header and add "SameSite=Strict" attribute. </p>
  
  <pre><code>response.setHeader("Set-Cookie", response.getHeader("Set-Cookie") + "; SameSite=strict");
  </code></pre>
  
  <p>It works ok but problem appeares when I have more than one "Set-Cookie" header in one response. <code>javax.servlet.http.HttpServletResponse</code> does not provide method to remove or overwrite more than one heder with the same name (iterating over them and using <code>setHeader()</code> doesn't work because it always sets the last one). Do you have any idea how to set SameSite attribute to cookie or how to overwrite headers in response filter? </p>
  
  <p>Thanks in advance.</p>