csrf-correction
This commit is contained in:
@@ -101,7 +101,7 @@
|
||||
function download_all_images(sid) {
|
||||
const ok = confirm(export_msg +' '+ export_msg_long);
|
||||
if (!ok) return false;
|
||||
fetch(image_endpoint, {
|
||||
csrfFetch(image_endpoint, {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify({
|
||||
|
||||
@@ -86,8 +86,8 @@
|
||||
|
||||
function download_all_videos(sid) {
|
||||
const ok = confirm(export_msg);
|
||||
if (!ok) return false;
|
||||
fetch(image_endpoint, {
|
||||
if (!ok) return false;
|
||||
csrfFetch(image_endpoint, {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify({
|
||||
|
||||
Reference in New Issue
Block a user