Skip to content

Commit 48dd294

Browse files
feat: Add remote IP address to Turnstile verification request
1 parent ad1d53a commit 48dd294

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

app/Services/TurnstileClient.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ public function siteverify(string $token): SiteverifyResponse
3636
->post('https://challenges.cloudflare.com/turnstile/v0/siteverify', [
3737
'secret' => $this->secret,
3838
'response' => $token,
39+
'remoteip' => request()->ip(),
40+
'idempotency_key' => uniqid('', true),
3941
]);
4042

4143
if (!$response->ok()) {

0 commit comments

Comments
 (0)