Skip to content

Commit 0f006ca

Browse files
committed
fix
1 parent d270c9b commit 0f006ca

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/DevBetterWeb.Web/Pages/Admin/Videos/Create.cshtml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,8 @@
178178
method: 'POST',
179179
body: JSON.stringify(uploadVideoStartRequest),
180180
headers: {
181-
'Content-Type': 'application/json'
181+
'Content-Type': 'application/json',
182+
'RequestVerificationToken': document.querySelector('input[name="__RequestVerificationToken"]').value
182183
}
183184
})
184185
.then(response => {
@@ -268,7 +269,8 @@
268269
method: 'POST',
269270
body: JSON.stringify(body),
270271
headers: {
271-
'Content-Type': 'application/json'
272+
'Content-Type': 'application/json',
273+
'RequestVerificationToken': document.querySelector('input[name="__RequestVerificationToken"]').value
272274
}
273275
})
274276
.then(response => {

0 commit comments

Comments
 (0)