Skip to content

Commit

Permalink
Fix: fetch static files crashes application (#241)
Browse files Browse the repository at this point in the history
  • Loading branch information
Philippluca authored Aug 7, 2024
2 parents 2f628f2 + a1c5447 commit 897d883
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 4 additions & 2 deletions config/realms/keycloak-geopilot.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@
"publicClient": true,
"alwaysDisplayInConsole": true,
"redirectUris": [
"https://localhost:5173"
"https://localhost:5173",
"http://localhost:5173"
],
"webOrigins": [
"https://localhost:5173"
"https://localhost:5173",
"http://localhost:5173"
]
}
],
Expand Down
5 changes: 1 addition & 4 deletions src/Geopilot.Frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,9 @@ export const App: FC = () => {
return await response.json();
} else if (!contentType || responseContentType?.includes(contentType)) {
return await response.text();
} else {
return "";
}
} else {
return response;
}
return "";
};

useEffect(() => {
Expand Down

0 comments on commit 897d883

Please sign in to comment.