Fix CSRF token in unsubscribe page

This commit is contained in:
TheMaddax 2025-12-18 11:41:41 -07:00
parent 474df2aa61
commit e2930c6ce9

View file

@ -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 || '',
},
});