HTML GET method returns an error - any suggestion

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

Failed to load Redirect from ‘’ to ‘’ 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.