diff --git a/config/realms/keycloak-geopilot.json b/config/realms/keycloak-geopilot.json index 855598ef..c1ac9c89 100644 --- a/config/realms/keycloak-geopilot.json +++ b/config/realms/keycloak-geopilot.json @@ -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" ] } ], diff --git a/src/Geopilot.Frontend/src/App.tsx b/src/Geopilot.Frontend/src/App.tsx index e5a833b1..1d07a40c 100644 --- a/src/Geopilot.Frontend/src/App.tsx +++ b/src/Geopilot.Frontend/src/App.tsx @@ -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(() => {