Fix content type for captcha check

This commit is contained in:
Madeline 2022-07-20 15:07:39 +10:00
parent 8d9816879f
commit 2c8eadb9ef

View File

@ -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}`,
})