CORS Error

This commit is contained in:
2023-05-23 12:51:21 +02:00
parent e3186aebb0
commit 87d2357b41
3 changed files with 12 additions and 0 deletions

8
Website/apiConnector.js Normal file
View File

@ -0,0 +1,8 @@
const apiUri = "http://localhost:5177";
function GetTasks(){
var getTaskUri = apiUri + "/Tasks/GetList";
fetch(getTaskUri)
.then(response => response.json())
.catch(error => console.error('Unable to get items.', error));
}