Fix CSRF on upload page
This commit is contained in:
parent
a8fa68a611
commit
d30f049111
|
|
@ -172,7 +172,8 @@ export default {
|
|||
body: data,
|
||||
credentials: 'same-origin',
|
||||
headers: {
|
||||
Accept: 'application/json'
|
||||
Accept: 'application/json',
|
||||
'X-CSRF-TOKEN': document.querySelector('meta[name="csrf-token"]').content
|
||||
},
|
||||
method: 'POST'
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user