Fix content type for captcha check
This commit is contained in:
parent
8d9816879f
commit
2c8eadb9ef
@ -17,6 +17,9 @@ export async function verifyHcaptcha(response: string, ip?: string) {
|
||||
|
||||
const res = await fetch("https://hcaptcha.com/siteverify", {
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/x-www-form-urlencoded",
|
||||
},
|
||||
body: `response=${response}&secret=${secret}&remoteip=${ip}&sitekey=${sitekey}`,
|
||||
})
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user