2
0

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 id="settingstab">
</settingstab> </settingstab>
<script src="apiConnector.js"></script>
<script src="interaction.js"></script> <script src="interaction.js"></script>
</body> </body>
</html> </html>

View File

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