Access issue - No access allowed

I have just registered my API key along with my javascript domain. But I am getting message that:

SEC7120: [CORS] The origin ‘https://.co.uk’ did not find 'https://.co.uk’ in the Access-Control-Allow-Origin response header for cross-origin resource at ‘https://api.companieshouse.gov.uk/company/{company_number’.

I am writing my code in javascript using fetch.

solved.

I added www in my javascript domain which I have now removed in my API application. Its now working