diff --git a/backend/src/main/resources/get/rsa.js b/backend/src/main/resources/get/rsa.js index 9063a9c..283b758 100644 --- a/backend/src/main/resources/get/rsa.js +++ b/backend/src/main/resources/get/rsa.js @@ -22,8 +22,7 @@ async function decrypt() { document.getElementById("decodedtext").value = "Decifratura in corso..."; try { - // NOTA: Controlla che la rotta nel tuo Java sia corretta (/seal/rsa/decrypt o /api/rsa/decifra) - const res = await fetch("http://localhost:8080/seal/rsa/decrypt", { + const res = await fetch("/seal/rsa/decrypt", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ text: input }) });