fixes #2460 switch api auth header to X-PIWIGO-API

Replaces usage of the Authorization header with X-PIWIGO-API for API key authentication. This improves consistency and may address issues with standard Authorization header handling.
This commit is contained in:
Linty
2025-12-01 18:12:31 +01:00
parent 66f0ef574d
commit 3da45eabac
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -125,7 +125,7 @@
<div class="card-content">
<div class="header-setting">
<p class="header-label">Authorization:</p>
<p class="header-label">X-PIWIGO-API:</p>
<p class="header-warning">Doesn't work when you use "INVOKE (new window)"</p>
<input type="text" id="apiKey" placeholder="pkid-xxxxxxxx-xxxxxxxxxxxxxxxxxxxx:yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy" />
</div>
+1 -1
View File
@@ -346,7 +346,7 @@ $(() => {
if (!useCookie) {
fetchOption.credentials = 'omit';
fetchOption.headers = {
Authorization: authorization
"X-PIWIGO-API": authorization
}
}