show image preview + single file downloads

This commit is contained in:
2025-08-10 23:16:18 +02:00
parent bfe73eefb9
commit c8b52a5b3b
13 changed files with 174 additions and 26 deletions

View File

@@ -9,7 +9,9 @@ export function getAuthHeader(): ['authorization', string] | null {
export function getApiHeaders(
includeAuth: boolean = true
): Record<string, string> {
const headers: Record<string, string> = {};
const headers: Record<string, string> = {
cookie: document.cookie,
};
if (includeAuth) {
const header = getAuthHeader();