As ridiculous as it sounds in 2021, I removed my cookies and all was back to working as normal. If you're able to login in a different browser and/or in private/incognito mode, try clearing the cookies for your cockpit server. It worked for me.