# JavaScript domains restriction

**URL:** <http://forum.companieshouse.gov.uk/t/javascript-domains-restriction/7307>\
**Category:** API Question\
**Created:** [January 9, 2024, 10:24am UTC](http://forum.companieshouse.gov.uk/t/javascript-domains-restriction/7307 "2024-01-09T10:24:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![connect](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/c/9fc348/32.png) [@connect](http://forum.companieshouse.gov.uk/u/connect)\
**Post date:** [January 9, 2024, 10:24am UTC](http://forum.companieshouse.gov.uk/t/javascript-domains-restriction/7307/1 "2024-01-09T10:24:37Z")

</div>

Hello,

We utilize the Companies House API to automatically complete company information in our application.

In the API settings for our app, we have limited the “JavaScript domains” to only some domains. Despite this, we’ve noticed that we can successfully use this API key with an HTTP client and still receive a valid response.

e.g.  
curl -u :  
[https://api.company-information.service.gov.uk/company/00000006](https://api.company-information.service.gov.uk/company/00000006)

This leads us to question the functionality of the JavaScript domains restriction. Does it depend on an HTTP header for enforcement?

Thanks
