I have a nodejs app with express as backend which is running on localhost
. I have subdomains associated with it like user1.localhost
. These subdomains are opening in Chrome but Firefox throws Server Not Found
error.
Does Firefox needs some configuration to allow subdomains?
I think the reason is that Chrome resolves *.localhost to localhost internally and other browsers request DNS server for subdomain.localhost (which obviously fails). You can use hosts files to make it work for them.
The reason Chrome does this is security reasons, you can read more about it here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With