Skip to content

Commit

Permalink
fix(frontend): include cookies in request
Browse files Browse the repository at this point in the history
  • Loading branch information
Björn Urban committed Apr 11, 2024
1 parent dd9d9d2 commit f62dc85
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/src/Requests.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
async function fetchRequests() {
try {
const response = await fetch('/api/requests');
const response = await fetch('/api/requests',
{
credentials: "include"
});
if (response.ok) {
requests = await response.json();
} else {
Expand Down

0 comments on commit f62dc85

Please sign in to comment.