HTML GET method returns an error - any suggestion

From HTML page, GET method is returning the following error:

Failed to load https://kc.kobotoolbox.org/api/v1/data/number/: Redirect from ‘https://kc.kobotoolbox.org/api/v1/data/number/’ to ‘https://kc.kobotoolbox.org/api/v1/’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://localhost:port’ is therefore not allowed access.

Here, number is my project id. Any suggestion how to get json data using GET method from HTML using script.