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,