From 0f006ca82f814a16af11798ef4303301774c5cee Mon Sep 17 00:00:00 2001 From: ShadyNagy Date: Fri, 20 Dec 2024 19:45:05 +0200 Subject: [PATCH] fix --- src/DevBetterWeb.Web/Pages/Admin/Videos/Create.cshtml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/DevBetterWeb.Web/Pages/Admin/Videos/Create.cshtml b/src/DevBetterWeb.Web/Pages/Admin/Videos/Create.cshtml index dddcaa2d3..d42c70dd6 100644 --- a/src/DevBetterWeb.Web/Pages/Admin/Videos/Create.cshtml +++ b/src/DevBetterWeb.Web/Pages/Admin/Videos/Create.cshtml @@ -178,7 +178,8 @@ method: 'POST', body: JSON.stringify(uploadVideoStartRequest), headers: { - 'Content-Type': 'application/json' + 'Content-Type': 'application/json', + 'RequestVerificationToken': document.querySelector('input[name="__RequestVerificationToken"]').value } }) .then(response => { @@ -268,7 +269,8 @@ method: 'POST', body: JSON.stringify(body), headers: { - 'Content-Type': 'application/json' + 'Content-Type': 'application/json', + 'RequestVerificationToken': document.querySelector('input[name="__RequestVerificationToken"]').value } }) .then(response => {