From 74c4694af6779ee2ddbb16dc65cf4520bf636490 Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Fri, 16 Dec 2022 12:49:05 +0100 Subject: [PATCH] Fixes #203 --- common/spaces/http_space_primitives.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/spaces/http_space_primitives.ts b/common/spaces/http_space_primitives.ts index 4da0467d..38a47044 100644 --- a/common/spaces/http_space_primitives.ts +++ b/common/spaces/http_space_primitives.ts @@ -22,6 +22,8 @@ export class HttpSpacePrimitives implements SpacePrimitives { ): Promise { const result = await fetch(url, options); if (result.status === 401) { + // Invalid credentials, reloading the browser should trigger a BasicAuth dialog + location.reload(); throw Error("Unauthorized"); } return result;