According to a European Union law, websites must not use cookies until confirmed by the user. How can we tell Wicket to not automatically use cookies until the user has confirmed it? Is there some add-on already available for that?
You can use something like cookiecuttr and have wicket look for the cookie it sets before setting any of it's own.
One can create an own Filter
instance that is invoked before WicketFilter
and pass a ServletResponse
instance to the chain that prevents cookie creation:
chain.doFilter(req, new HttpServletResponseWrapper(response) {
@Override
public void addCookie(Cookie cookie) {
}
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With