diff options
Diffstat (limited to 'api/src')
-rw-r--r-- | api/src/util/utility/captcha.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/api/src/util/utility/captcha.ts b/api/src/util/utility/captcha.ts index b32bd1c6..ba380d7a 100644 --- a/api/src/util/utility/captcha.ts +++ b/api/src/util/utility/captcha.ts @@ -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}`, }) |