CORS Error
This commit is contained in:
parent
e3186aebb0
commit
87d2357b41
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));
|
||||
}
|
@ -40,6 +40,7 @@
|
||||
<settingstab id="settingstab">
|
||||
|
||||
</settingstab>
|
||||
<script src="apiConnector.js"></script>
|
||||
<script src="interaction.js"></script>
|
||||
</body>
|
||||
</html>
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user