Cannot connect to local Jupyter notebook server on Mac OS Sequoia

I have upgraded to Mac OS Sequoia and I cannot connect to the local Jupyter notebook server. I tried Safari, Chrome, and Firefox, and neither of them works. I tried giving access to Chrome in the ‘Local Network’ setting, tried turning the firewall on and off, and nothing seems to help. Any ideas how to fix this?