Syntax for make get request using fetch()

Note: you also need to ensure you’ve done a couple of other things e.g. you have created a live application not a test one where you have registered this with Companies House. You’ll also need to have the url your javascript will be calling Companies House from in the “javascript urls” section of your Companies House application. If you are running something on a local host then you’ll need to use the workaround for localhost also.