net::ERR_UNSAFE_PORT — why does Chrome block this port number?

Chrome refused to connect to the port in the URL. Browsers restrict certain ports because of the services and protocols associated with them. Confirm the effective port in Network, including redirects or configuration that may have selected a different port.
Move the service to a permitted port and update the URL, proxy or environment settings that refer to it. The example shows a local development endpoint and how to inspect its port. Keep the browser’s restricted-port protections in place.
The local URL below uses port 3000. When moving the service, verify both the port it listens on and the port the browser requests. A stale build setting or redirect can still send the page to the old port.
const apiUrl = new URL('http://localhost:3000/health'); console.log(apiUrl.port); // Choose a browser-permitted service port.
Restart the service on the new port, then check that the browser and its request configuration both point there.