A common discrepancy between our dev and prod environments is that prod uses HTTPS while dev is stuck on HTTP because reasons:
Using certificates from real CAs for development can be dangerous or impossible (for hosts like localhost or 127.0.0.1), but self-signed certificates cause trust errors. Managing your own CA is the best solution, but usually involves arcane commands, specialized knowledge and manual steps.
I've considered getting my dev environment on HTTPS but have always stopped at "Managing your own CA". 🙅♂️ Not gonna do it. But!
mkcert automatically creates and installs a local CA in the system root store, and generates locally-trusted certificates.
mkcert currently supports macOS and Linux. Windows support coming next.