Applications > System Preferences > Network > Advanced > Proxies and deselect any proxies that have been selected.
Disable your kaspersky there does the ticket. I deleted all kaspersky from the application part of my mac. I am so disappointed in apple for doing this. It was not just Kasper who was impacted by this. Malwarebytes was and while googling this I saw other antivirus companies with the same issue. I felt like I was on windows how slow my computer was going. To even read the thread in here I had to do it from my phone.