The problem isn’t with your server, it’s with your cookie manager.

Make sure you’re using the default Cookie Policy with the HC4CookieHandler implementation.

Leave a comment if this helped you out. it took an hour of searching to figure it out…