fix(server): turnstile-failed: missing-input-secret

Fix #9726
This commit is contained in:
syuilo 2023-01-26 11:31:43 +09:00
parent 605b0f27e4
commit 7131eb1827

View file

@ -23,9 +23,9 @@ export class CaptchaService {
const res = await this.httpRequestService.send(url, {
method: 'POST',
body: JSON.stringify(params),
body: params.toString(),
headers: {
'Content-Type': 'application/json',
'Content-Type': 'application/x-www-form-urlencoded',
},
}, { throwErrorWhenResponseNotOk: false });