Consider the following code (React JS code): poll() { var self = this; var url = "//" + location.hostname + "/api/v1/eve/history/historical-data/" + …