From 6d9807098664b4b668b63e060379aeb93f9c79fa Mon Sep 17 00:00:00 2001 From: bruno Date: Mon, 13 Jul 2026 20:48:40 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20ajout=20X-CSRF-Token=20dans=20les=20requ?= =?UTF-8?q?=C3=AAtes=20save/delete=20Gitea?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/templates/gitea_workspace.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/templates/gitea_workspace.html b/app/templates/gitea_workspace.html index 4864baa..f88eec2 100644 --- a/app/templates/gitea_workspace.html +++ b/app/templates/gitea_workspace.html @@ -280,7 +280,7 @@ function giteaWorkspace() { try { var r = await fetch('/api/gitea/projects/' + this.owner + '/' + this.repo + '/file', { method: 'PUT', - headers: {'Content-Type': 'application/json'}, + headers: {'Content-Type': 'application/json', 'X-CSRF-Token': this.getCsrfToken()}, body: JSON.stringify({ path: this.filePath, content: this.editContent, message: this.commitMessage, sha: this.fileSha,