No authentication popup

This commit is contained in:
echarp 2022-11-13 17:02:53 +01:00
parent 8de1cee8ee
commit 62640cf60d
1 changed files with 3 additions and 1 deletions

View File

@ -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