fix all csfr token issues

This commit is contained in:
2025-05-30 13:22:51 +02:00
parent fee79c6ec7
commit 9159817947
14 changed files with 39 additions and 44 deletions

View File

@@ -240,7 +240,7 @@ export class UploadManager {
const csrfToken = document.querySelector('meta[name="csrf-token"]').getAttribute('content');
const response = await fetch(`/api/rooms/${this.roomManager.roomId}/files/upload`, {
method: 'POST',
headers: { 'X-CSRFToken': csrfToken },
headers: { 'X-CSRF-Token': csrfToken },
body: formData
});