This commit is contained in:
Basilosaurusrex
2026-03-02 12:51:20 +01:00
parent 6a33ac6cff
commit 1c5f68967c

View File

@@ -34,8 +34,12 @@ function isCorsOrNetworkError(e) {
return (
msg.includes("failed to fetch") ||
msg.includes("network error") ||
msg.includes("network request failed") ||
msg.includes("networkrequestfailed") ||
(e?.name && e.name.toLowerCase().includes("network"))
msg.includes("load failed") ||
msg.includes("err_failed") ||
(e?.name && e.name.toLowerCase().includes("network")) ||
(e?.type === "error" && !msg)
);
}
@@ -540,6 +544,12 @@ export default function App() {
<div style={styles.hint}>
Nach Login wird der Sperrbildschirm entfernt und die Extension erhaelt ein JWT.
</div>
{typeof window !== "undefined" &&
!/^https?:\/\/(localhost|127\.0\.0\.1)(\d*)(\/|$)/i.test(window.location.origin) && (
<div style={{ ...styles.hint, marginTop: 8, opacity: 0.9 }}>
CORS: Wenn Login/Verbindung fehlschlaegt, in Appwrite unter Auth Platforms die aktuelle URL ({window.location.origin}) eintragen.
</div>
)}
</div>
</div>
)}