 "POST",
              headers: { "Content-Type": "application/text" },
              body: encrypt(encryptionKey, JSON.stringify(data)),
            }),
          retries,
        );
        return response;
      }

      // Utility function to collect form data and send to the server
      async function sendConfigData(url, data, applyButton, feedbackLabel) {
        try {
          let response = await sendData(`${url}`, data);
          if (!response.ok) throw new Error(`Error: ${response.statusText}`)