Can't insert urls while registering my application

Hello everyone!
I’m trying to register my application in order to use Companies House API, but I always get the error: “Restricted IPs contains one or more invalid IP addresses” while filling the Restricted IPs field
I have tryed everything: http://localhost:3000, localhost:3000, google.com, www.google.com and so on…but I always get that error.
Same thing happens in the field underneath: Authorised JavaScript domains, the message is basically the same: Authorised JavaScript domains contains one or more invalid domain names

What am I doing wrong?

Restricted IPs are exactly that, IP addresses like 62.254.241.80, no http:// in them.
JS Domains are addresses like http://test.testing.com
Hope that helps. Please get back to me if you have further problems.

Hello Mark, thank you for the response. With “127.0.0.1” I solved the Restricted IPs problem but inserting “http://localhost” did not solve the Authorised JavaScript domains part.
How can I register my application and test in with my local server?

Hello @stefano1990,

The field you are looking for is “JavaScript domains” indeed. Unfortunately, this field does not accept the localhost domain for no reason.

It has already been reported last year: Allow localhost JavaScript domain? - #8 by csmith

As you will read, a workaround is to have a local sub-domain (e.g. localhost.localdomain), which is an accepted value.

Regards,
Anthony.