diff --git a/bookstore/src/main/java/com/fjordtek/bookstore/service/session/BookSameSiteCookieFilter.java b/bookstore/src/main/java/com/fjordtek/bookstore/service/session/BookSameSiteCookieFilter.java index 07bfd5a..9c0cbda 100644 --- a/bookstore/src/main/java/com/fjordtek/bookstore/service/session/BookSameSiteCookieFilter.java +++ b/bookstore/src/main/java/com/fjordtek/bookstore/service/session/BookSameSiteCookieFilter.java @@ -30,7 +30,11 @@ public class BookSameSiteCookieFilter extends GenericFilterBean { throws IOException, ServletException { 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); }