Browser showing a stale error page on localhost port
@sumit▲ 0 net votes
If a dev server on localhost is returning correct HTML via curl but the browser shows an unrelated error, the browser may be showing a cached page or a different app that previously used the same port. Check that the address bar has the exact origin, then hard reload or clear site data. Also check whether the server listens only on IPv6 [::1] (lsof output), since localhost resolution can differ between browser and curl.