let request = new Request('https://localhost:5001/api/values');
fetch(request)
    .then((response) => response.json())
    .then((json) => console.log(json));

https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API