# Allow localhost JavaScript domain?

**URL:** <http://forum.companieshouse.gov.uk/t/allow-localhost-javascript-domain/83>\
**Category:** Uncategorized\
**Created:** [May 17, 2015, 10:43pm UTC](http://forum.companieshouse.gov.uk/t/allow-localhost-javascript-domain/83 "2015-05-17T22:43:46Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![antoine](http://forum.companieshouse.gov.uk/user_avatar/forum.companieshouse.gov.uk/antoine/32/1082_2.png) [@antoine](http://forum.companieshouse.gov.uk/u/antoine)\
**Post date:** [February 1, 2018, 12:11pm UTC](http://forum.companieshouse.gov.uk/t/allow-localhost-javascript-domain/83/12 "2018-02-01T12:11:10Z")

</div>

Hello @david,  
A workaround is simply to give a hostname to your IP address, by editing `/etc/hosts` or its equivalent on your OS.

```
192.168.0.1 localhost my.localdomain

```

And you can now register `my.localdomain` as a CH API “JavaScript domains”.

Still, a status update would be appreciated, for something that was already on the backlog in 2015.  
Just remove the piece of code preventing `localhost` as a valid domain name, and you’re done.

---

_[View the full topic](http://forum.companieshouse.gov.uk/t/allow-localhost-javascript-domain/83)._
