Welcome to the community…
Can you please chekc if any firewall is blocking …if you turn off the firewall and check it might help…or atleast add exception to the port and the url used…
This might not be the issue as well as it was working in legacy…but as per exception it looks like the exception can be because of firewalls
Hope this helps
Cheers