N°7124 - [SECU] Cross-Site Request Forgery (CSRF) in several iTop pages (finalize implementation)

This commit is contained in:
jf-cbd
2024-06-07 14:18:14 +02:00
parent d4b342a35d
commit 98f946c871
10 changed files with 31 additions and 22 deletions

View File

@@ -112,12 +112,9 @@ const CombodoCKEditorHandler = {
const formData = new FormData();
formData.append('upload', file);
fetch(uploadUrl, {
CombodoHTTP.Fetch(uploadUrl, {
method: 'POST',
body: formData,
headers: {
'X-Combodo-Ajax': true
},
body: formData
})
.then(response => response.json())
.then(responseData => {