# Javascript Domain Format

**URL:** <http://forum.companieshouse.gov.uk/t/javascript-domain-format/7198>\
**Category:** API Issues\
**Created:** [December 6, 2023, 10:07pm UTC](http://forum.companieshouse.gov.uk/t/javascript-domain-format/7198 "2023-12-06T22:07:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![idudley](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/i/eada6e/32.png) [@idudley](http://forum.companieshouse.gov.uk/u/idudley)\
**Post date:** [December 6, 2023, 10:07pm UTC](http://forum.companieshouse.gov.uk/t/javascript-domain-format/7198/1 "2023-12-06T22:07:28Z")

</div>

I am getting this error when trying to add a domain to my api key

" \* [The JavaScript domain address format for one or more entries is invalid. The format should consist of ‘http://’ or ‘https://’ followed by text separated by a decimal point. For example, http://test.com](https://developer.company-information.service.gov.uk/manage-applications/601e6f7f6670a39a1137689b/key/601e6f7f6670a39a1137689c/update/live#err-id-javaScriptDomain)"

My domain has the following format

[https://domain-app-abc1234.hostingservice.com](https://domain-app-abc1234.hostingservice.com)

I assume it doesn’t like the dashes, but that seems like a very weird restriction as there are many domains in a similar format to this one. The strange thing is I have already added a domain to this key with the exact same format awhile ago, I can’t remember how I did it but I do remember it giving me the same kind of issue back then. I just can’t figure out how I added it last time.

Can anyone help?

Thanks
