mirror of
https://github.com/spacebarchat/server.git
synced 2026-05-04 13:55:24 +00:00
Fix content type for captcha check
This commit is contained in:
@@ -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}`,
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user