I found a solution. For me it was only working on Chrome and on a window with tor.
When it was not working on a normal window, my laptop was connected with an ethernet cable and my phone was on the wifi of the same router.
I turned off wifi on my phone and connect my laptap via wireless.
It worked. Connected to whatsapp web with no problems.