Fix auth when serving Frigate at a subpath (#12815)

Ensure axios.defaults.baseURL is set when accessing login form.

Drop `/api` prefix in login form's `axios.post` call, since `/api` is
part of the baseURL.

Redirect to subpath on succesful authentication.

Prepend subpath to default logout url.

Fixes #12814
This commit is contained in:
Soren L. Hansen
2024-08-29 19:58:36 -06:00
committed by Nicolas Mowen
parent 87b69c373a
commit b01ce31903
3 changed files with 6 additions and 3 deletions
+1
View File
@@ -1,6 +1,7 @@
import React from "react";
import ReactDOM from "react-dom/client";
import LoginPage from "@/pages/LoginPage.tsx";
import "@/api";
import "./index.css";
ReactDOM.createRoot(document.getElementById("root")!).render(