mirror of
https://github.com/Ravinou/borgwarehouse
synced 2026-03-14 14:25:46 +01:00
hotfix: 🚑 compatibility with installations behind .htaccess/.htpasswd that use an Authorization header
This commit is contained in:
parent
f38822ff14
commit
e87e6d9760
3 changed files with 3 additions and 3 deletions
|
|
@ -20,7 +20,7 @@ export default async function handler(req, res) {
|
|||
}
|
||||
|
||||
try {
|
||||
if (authorization) {
|
||||
if (!session && authorization) {
|
||||
const API_KEY = authorization.split(' ')[1];
|
||||
const permissions = await tokenController(API_KEY, FROM_IP);
|
||||
if (!permissions) {
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ export default async function handler(req, res) {
|
|||
}
|
||||
|
||||
try {
|
||||
if (authorization) {
|
||||
if (!session && authorization) {
|
||||
const API_KEY = authorization.split(' ')[1];
|
||||
const permissions = await tokenController(API_KEY, FROM_IP);
|
||||
if (!permissions) {
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ export default async function handler(req, res) {
|
|||
}
|
||||
|
||||
try {
|
||||
if (authorization) {
|
||||
if (!session && authorization) {
|
||||
const API_KEY = authorization.split(' ')[1];
|
||||
const permissions = await tokenController(API_KEY, FROM_IP);
|
||||
if (!permissions) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue