JSFiddle - React, Tailwind, and code Playground

JavaScript

/////
//Using jquery
/////
var settings = {
  "async": true,
  "crossDomain": true,
  "url": "https://scihub.copernicus.eu/dhus/api/stub/products?offset=0&limit=25&filter=l0",
  "method": "GET",
  "headers": {
    "authorization": "Basic " + btoa("m.sobek" + ":" + "CT-Sent456ma"), 
    "cache-control": "no-cache"
  }
}

$.ajax(settings).done(function (response) {
  console.log(response);
  debugger;
});



/////
//using vanilla javascript
/////
var data = null;

var xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener("readystatechange", function () {
  if (this.readyState === 4) {
    console.log(this.responseText);
  }
});

xhr.open("GET", "https://scihub.copernicus.eu/dhus/api/stub/products?offset=0&limit=25&filter=l0");
xhr.setRequestHeader("authorization", "Basic " + btoa("m.sobek" + ":" + "CT-Sent456ma"));
xhr.setRequestHeader("cache-control", "no-cache");
xhr.send(data);