The API key must be registered with the full host, including the port if using a non-standard port. If you're using localhost:8080, enter this whole host during the API key registration.
host
localhost:8080