diff --git a/templates/index.html b/templates/index.html index c5819cd..cbf8b7d 100644 --- a/templates/index.html +++ b/templates/index.html @@ -955,6 +955,7 @@ try { const response = await fetch('/list_aliases', { method: 'POST', + credentials: 'include', headers: { 'Content-Type': 'application/json' }, @@ -983,6 +984,7 @@ try { const response = await fetch(`/${actionName}`, { method: 'POST', + credentials: 'include', headers: { 'Content-Type': 'application/json' } @@ -1008,6 +1010,7 @@ try { const response = await fetch('/search', { method: 'POST', + credentials: 'include', headers: { 'Content-Type': 'application/json' }, @@ -1032,7 +1035,9 @@ async function openConfig() { try { - const response = await fetch('/config'); + const response = await fetch('/config', { + credentials: 'include' + }); const config = await response.json(); document.getElementById('mailcowServer').value = config.mailcow_server || ''; @@ -1060,6 +1065,7 @@ try { const response = await fetch('/config', { method: 'POST', + credentials: 'include', headers: { 'Content-Type': 'application/json' }, @@ -1094,6 +1100,7 @@ try { const response = await fetch('/change_password', { method: 'POST', + credentials: 'include', headers: { 'Content-Type': 'application/json' }, @@ -1141,6 +1148,7 @@ try { const response = await fetch('/create_alias', { method: 'POST', + credentials: 'include', headers: { 'Content-Type': 'application/json' }, @@ -1189,6 +1197,7 @@ try { const response = await fetch('/search', { method: 'POST', + credentials: 'include', headers: { 'Content-Type': 'application/json' }, @@ -1381,6 +1390,7 @@ try { const response = await fetch('/delete_aliases_bulk', { method: 'POST', + credentials: 'include', headers: { 'Content-Type': 'application/json' }, @@ -1414,6 +1424,7 @@ try { const response = await fetch('/delete_alias', { method: 'POST', + credentials: 'include', headers: { 'Content-Type': 'application/json' }, @@ -1476,6 +1487,7 @@ try { const response = await fetch('/create_timed_alias', { method: 'POST', + credentials: 'include', headers: { 'Content-Type': 'application/json' }, diff --git a/templates/index.html.bak b/templates/index.html.bak new file mode 100644 index 0000000..c5819cd --- /dev/null +++ b/templates/index.html.bak @@ -0,0 +1,1519 @@ + + +
+ + + + +This action cannot be undone.
+ +