For me it was a network problem, some websites just wouldn't connect on wi-fi, but everything was fine with the hotspot.
After renewing the DHCP several times and cancelling the wi-fi configuration from the Library as someone here suggested on page 2 or 3 times it now works somehow.