Hacker News new | ask | show | jobs
by jfengel 1991 days ago
I hadn't heard of this before. It would be nice if it works. Do you think that implementers could do so cost-effectively? (That is, not have to charge $1 to send $.01?)

Gotta say, this code sample on Interledger kinda threw me:

  fetch('http://localhost:8080/', {
    method: 'GET',
    maxPrice: 5000,
    plugin
   })
Seems like this kinda thing that would mandate https.
1 comments

Would you expect https to be required on localhost? You gain very little (or nothing?) by doing it, but you do lose by adding complexity. Especially since you can't get let's encrypt to automatically issue a widely trusted certificate for localhost.
You don't need let's encrypt for a dev environment, you can use something like https://github.com/FiloSottile/mkcert and run Caddy locally to reverse proxy to whatever you need for development.
You don't even need mkcert -- Caddy does all that for you in a local environment, and keeps the certs renewed.