Resolving adresses with .localhost TLD in macOS

ساخت وبلاگ

When developing a web app locally I like to use addresses like app.localhost:8080 to access them. They work fine in Chrome but not in Safari. I guess this is because Chrome has special handling for the TLD and Safari uses the OS DNS resolver. Is there a way to make macOS resolve all .localhost addresses to 127.0.0.1?

Recent Questions...
ما را در سایت Recent Questions دنبال می کنید

برچسب : نویسنده : استخدام کار superuser بازدید : 359 تاريخ : پنجشنبه 31 تير 1395 ساعت: 17:11