ECONNREFUSED when trying to use API from another backend

Yes, this is the axios way to do basic auth. There’s no easy way to link to that specific passage, but search for “basic auth” on this page: https://www.npmjs.com/package/axios

Here is another reference: https://masteringjs.io/tutorials/axios/basic_auth

That has nothing to do with php or Kirby, It has to do with internal interface and network routing. I have no idea why node doesn’t see php local host when curl/httpie do, but some previous servers I’ve worked with also bind themselves to 0.0.0.0, not 127.0.0.1

Yeah, i posted possible misconfig in the post above

Not sure what this mean

Shouldn’t I be able to decide where I bing my Kirby server when I use php -S HOSTNAME:PORT? And if not, why isn’t this documented?