'In my Mac OS create-react-app opens MY-COMPUTER-HOSTNAME.local:3000 instead of localhost:3000 as a result I am unable to use google auth0

My laptop uses Mac with hostname "Apple-Macbook-Air". When I created a react app and run npm start, it opens http://Apple-Macbook-Air.local:3000 (Apple-Macbook-Air is my local host name of my system) in browser.

Picture showing localhost name

When I visit http://localhost:3000 it cannot be accessed.

Google 0Auth only allows localhost to be put in Authorized JavaScript origins as a result the authorization is not working.

Please help to fix this.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source