I know this is an old question, but here is a proven and working solution for everyone who ends up looking for an answer here:
At the beginning of App Domains field should be empty.
Click the "Add Platform" button below and select "Website."
In the new site form, you can add localhost in the Site URL field:
eg. http://localhost:3000/
For a visual guide with images, you can check this answer .
Alternatively, you can actually use answer123 answer and map localhost to a local domain (e.g. myproject.dev), and the local dev domain should be entered in the same Site URL field: for example. http://myproject.dev/
source share