This commit is contained in:
@@ -22,8 +22,7 @@ async function decrypt() {
|
|||||||
document.getElementById("decodedtext").value = "Decifratura in corso...";
|
document.getElementById("decodedtext").value = "Decifratura in corso...";
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// NOTA: Controlla che la rotta nel tuo Java sia corretta (/seal/rsa/decrypt o /api/rsa/decifra)
|
const res = await fetch("/seal/rsa/decrypt", {
|
||||||
const res = await fetch("http://localhost:8080/seal/rsa/decrypt", {
|
|
||||||
method: "POST", headers: { "Content-Type": "application/json" },
|
method: "POST", headers: { "Content-Type": "application/json" },
|
||||||
body: JSON.stringify({ text: input })
|
body: JSON.stringify({ text: input })
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user