mirror of
https://github.com/C9Glax/tranga-website.git
synced 2025-06-20 10:37:54 +02:00
CORS Error
This commit is contained in:
8
Website/apiConnector.js
Normal file
8
Website/apiConnector.js
Normal 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));
|
||||
}
|
Reference in New Issue
Block a user