Fixes #203
This commit is contained in:
parent
88cc80cd1a
commit
74c4694af6
@ -22,6 +22,8 @@ export class HttpSpacePrimitives implements SpacePrimitives {
|
||||
): Promise<Response> {
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user