Fix CSRF token in unsubscribe page
This commit is contained in:
parent
474df2aa61
commit
e2930c6ce9
1 changed files with 1 additions and 1 deletions
|
|
@ -21,7 +21,7 @@ const confirmUnsubscribe = async () => {
|
|||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'X-CSRF-TOKEN': document.querySelector('meta[name="csrf-token"]')?.getAttribute('content') || '',
|
||||
'X-CSRF-TOKEN': (document.querySelector('meta[name="csrf-token"]') as HTMLMetaElement)?.content || '',
|
||||
},
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue