diff --git a/readdb/database.js b/readdb/database.js index 743a0ad..a937328 100644 --- a/readdb/database.js +++ b/readdb/database.js @@ -1,5 +1,5 @@ window.onload = function() { - fetch('https://maxiwee.de:5000/getData', { + fetch('https://127.0.0.1:5000/getData', { method: 'GET', headers: { 'Content-Type': 'application/json' @@ -30,7 +30,7 @@ window.onload = function() { }; document.getElementById('clearDbButton').addEventListener('click', function() { - fetch('https://maxiwee.de:5000/clearDb', { + fetch('https://127.0.0.1:5000/clearDb', { method: 'POST', }).then(function(response) { if (response.ok) { diff --git a/submit.js b/submit.js index ad314f2..a1eaf30 100644 --- a/submit.js +++ b/submit.js @@ -4,7 +4,7 @@ document.getElementById('myForm').addEventListener('submit', function(event) { var text = document.querySelector('input[name="myInput"]').value; var contact = document.querySelector('input[name="contactInput"]').value; // Get the contact info - fetch('https://maxiwee.de:5000/submit', { + fetch('https://127.0.0.1:5000/submit', { method: 'POST', headers: { 'Content-Type': 'application/json'