|
@ -30,7 +30,11 @@ public class BookSameSiteCookieFilter extends GenericFilterBean { |
|
|
throws IOException, ServletException { |
|
|
throws IOException, ServletException { |
|
|
|
|
|
|
|
|
HttpServletResponse httpResponse = (HttpServletResponse) responseData; |
|
|
HttpServletResponse httpResponse = (HttpServletResponse) responseData; |
|
|
httpResponse.setHeader("Set-Cookie", "HttpOnly; SameSite=strict;"); |
|
|
|
|
|
|
|
|
/* |
|
|
|
|
|
* Unnecessary, already set 'HttpOnly' cookie string removed. |
|
|
|
|
|
* Unit tests do not like it (colon separation maybe?) |
|
|
|
|
|
*/ |
|
|
|
|
|
httpResponse.setHeader("Set-Cookie", "SameSite=strict;"); |
|
|
chain.doFilter(requestData, responseData); |
|
|
chain.doFilter(requestData, responseData); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|