stripe-cli
stripe-cli copied to clipboard
Local listener not recognizing `.localhost` TLD
Issue
I am running an application on the .localhost TLD, in particular a multi-level subdomain (i.e. foo.bar.localhost:3000), which works out of the box without any /etc/hosts customization in Google Chrome and Firefox. I expected it to also work out of the box with the Stripe CLI when setting up a local listener:
stripe listen --project-name=bar --forward-to foo.bar.localhost:3000/webhook/stripe
Unfortunately, that does not work as expected, with me having to explicitly define foo.bar.localhost 127.0.0.1 in /etc/hosts.
While definitely not the end of the world, it'd be great if the Stripe CLI worked seamlessly with the .localhost TLD!
Environment
macOS 12.5