CORS Error

This commit is contained in:
glax 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));
}

View File

@ -40,6 +40,7 @@
<settingstab id="settingstab">
</settingstab>
<script src="apiConnector.js"></script>
<script src="interaction.js"></script>
</body>
</html>

View File

@ -78,6 +78,7 @@ searchdiv{
}
#settingscog {
cursor: pointer;
margin: 0px 30px;
height: calc(100% - 40px);
filter: invert(100%) sepia(0%) saturate(7465%) hue-rotate(115deg) brightness(116%) contrast(101%);
@ -125,6 +126,7 @@ settingstab{
}
#addPublication {
cursor: pointer;
background-color: var(--secondary-color);
width: 180px;
height: 300px;
@ -154,6 +156,7 @@ settingstab{
}
publication{
cursor: pointer;
background-color: var(--secondary-color);
width: 180px;
height: 300px;