From 62640cf60da7656e59ef8eeedae40c2cb6cb2857 Mon Sep 17 00:00:00 2001 From: echarp Date: Sun, 13 Nov 2022 17:02:53 +0100 Subject: [PATCH] No authentication popup --- themes/acoeur/assets/js/setup.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/themes/acoeur/assets/js/setup.js b/themes/acoeur/assets/js/setup.js index 717c099..be59488 100644 --- a/themes/acoeur/assets/js/setup.js +++ b/themes/acoeur/assets/js/setup.js @@ -13,7 +13,9 @@ if ('pages' === topSection) { document.body.classList.add('author') } else { // Check if access is authorized to root page - fetch('/').then(() => document.body.classList.add('author')) + // xBasic is to not have the authentication popup + fetch('/', {headers: {'WWW-Authenticate': 'xBasic'}}) + .then(result => { if (result.status === 200) document.body.classList.add('author') }) } // Setup a "property" attribute, to send to the backend for insertion/update/deletion