Changed app for proxy and https++
This commit is contained in:
@@ -955,6 +955,7 @@
|
|||||||
try {
|
try {
|
||||||
const response = await fetch('/list_aliases', {
|
const response = await fetch('/list_aliases', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
credentials: 'include',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json'
|
'Content-Type': 'application/json'
|
||||||
},
|
},
|
||||||
@@ -983,6 +984,7 @@
|
|||||||
try {
|
try {
|
||||||
const response = await fetch(`/${actionName}`, {
|
const response = await fetch(`/${actionName}`, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
credentials: 'include',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json'
|
'Content-Type': 'application/json'
|
||||||
}
|
}
|
||||||
@@ -1008,6 +1010,7 @@
|
|||||||
try {
|
try {
|
||||||
const response = await fetch('/search', {
|
const response = await fetch('/search', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
credentials: 'include',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json'
|
'Content-Type': 'application/json'
|
||||||
},
|
},
|
||||||
@@ -1032,7 +1035,9 @@
|
|||||||
|
|
||||||
async function openConfig() {
|
async function openConfig() {
|
||||||
try {
|
try {
|
||||||
const response = await fetch('/config');
|
const response = await fetch('/config', {
|
||||||
|
credentials: 'include'
|
||||||
|
});
|
||||||
const config = await response.json();
|
const config = await response.json();
|
||||||
|
|
||||||
document.getElementById('mailcowServer').value = config.mailcow_server || '';
|
document.getElementById('mailcowServer').value = config.mailcow_server || '';
|
||||||
@@ -1060,6 +1065,7 @@
|
|||||||
try {
|
try {
|
||||||
const response = await fetch('/config', {
|
const response = await fetch('/config', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
credentials: 'include',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json'
|
'Content-Type': 'application/json'
|
||||||
},
|
},
|
||||||
@@ -1094,6 +1100,7 @@
|
|||||||
try {
|
try {
|
||||||
const response = await fetch('/change_password', {
|
const response = await fetch('/change_password', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
credentials: 'include',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json'
|
'Content-Type': 'application/json'
|
||||||
},
|
},
|
||||||
@@ -1141,6 +1148,7 @@
|
|||||||
try {
|
try {
|
||||||
const response = await fetch('/create_alias', {
|
const response = await fetch('/create_alias', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
credentials: 'include',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json'
|
'Content-Type': 'application/json'
|
||||||
},
|
},
|
||||||
@@ -1189,6 +1197,7 @@
|
|||||||
try {
|
try {
|
||||||
const response = await fetch('/search', {
|
const response = await fetch('/search', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
credentials: 'include',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json'
|
'Content-Type': 'application/json'
|
||||||
},
|
},
|
||||||
@@ -1381,6 +1390,7 @@
|
|||||||
try {
|
try {
|
||||||
const response = await fetch('/delete_aliases_bulk', {
|
const response = await fetch('/delete_aliases_bulk', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
credentials: 'include',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json'
|
'Content-Type': 'application/json'
|
||||||
},
|
},
|
||||||
@@ -1414,6 +1424,7 @@
|
|||||||
try {
|
try {
|
||||||
const response = await fetch('/delete_alias', {
|
const response = await fetch('/delete_alias', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
credentials: 'include',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json'
|
'Content-Type': 'application/json'
|
||||||
},
|
},
|
||||||
@@ -1476,6 +1487,7 @@
|
|||||||
try {
|
try {
|
||||||
const response = await fetch('/create_timed_alias', {
|
const response = await fetch('/create_timed_alias', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
credentials: 'include',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json'
|
'Content-Type': 'application/json'
|
||||||
},
|
},
|
||||||
|
|||||||
1519
templates/index.html.bak
Normal file
1519
templates/index.html.bak
Normal file
File diff suppressed because it is too large
Load Diff
@@ -192,6 +192,7 @@
|
|||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json'
|
'Content-Type': 'application/json'
|
||||||
},
|
},
|
||||||
|
credentials: 'include', // CRITICAL: Include cookies in request
|
||||||
body: JSON.stringify({ password: password })
|
body: JSON.stringify({ password: password })
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user