blob: 2a5853457c7c3d45c8cb0f9be601ef725d3e70f3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
async function onTurnstileSuccess(token) {
const response = await fetch("https://backend.altafcreator.com", {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({"token": token}),
});
const result = await response.json();
if (result.status) {
alert(result);
} else {
alert("fail");
}
}
|