show image preview + single file downloads
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user