Using the standard Java Servlet API (Java 8 plus), How do I set the 'SameSite' Attribute of a Response Cookie?

后端 未结 0 1573
梦如初夏
梦如初夏 2021-01-22 01:41

In my Java code, I am setting a custom cookie on the response as follows.

final Cookie cookie = new Cookie("FOO", "bar");
// 1 day in seconds
         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题