Skip to content

Commit

Permalink
Update fetch URLs to use HTTPS instead of HTTP
Browse files Browse the repository at this point in the history
  • Loading branch information
maxiwee69 committed May 24, 2024
1 parent bf54969 commit e427b94
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions readdb/database.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
window.onload = function() {
fetch('https://127.0.0.1:5000/getData', {
fetch('https://maxiwee.de:5000/getData', {
method: 'GET',
headers: {
'Content-Type': 'application/json'
Expand Down Expand Up @@ -30,7 +30,7 @@ window.onload = function() {
};

document.getElementById('clearDbButton').addEventListener('click', function() {
fetch('https://127.0.0.1:5000/clearDb', {
fetch('https://maxiwee.de:5000/clearDb', {
method: 'POST',
}).then(function(response) {
if (response.ok) {
Expand Down
2 changes: 1 addition & 1 deletion submit.js
Original file line number Diff line number Diff line change
Expand Up @@ -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://127.0.0.1:5000/submit', {
fetch('https://maxiwee.de:5000/submit', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
Expand Down

0 comments on commit e427b94

Please sign in to comment.