Skip to content

Connect verified invisible CAPTCHA scores to subsequent requests - #123

Merged
cport1 merged 2 commits into
mainfrom
fix/captcha-client-signal-handoff
Nov 23, 2026
Merged

cport1 merged 2 commits into
mainfrom
fix/captcha-client-signal-handoff

Conversation

@cport1

@cport1 cport1 commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Changes

  • Issue a short-lived, host-only HttpOnly cookie for same-origin invisible CAPTCHA scores with verified proof and committed signals.
  • Check the receipt's host, expiry, and optional site key before evaluating the stored score. Keep the receipt out of rule metadata.
  • Use the request URL authority for Fetch and Next.js requests when the host header is absent.
  • Refresh the invisible challenge for each score and serialize concurrent submissions from the same session.

Validation

  • 78 browser tests and 132 focused SDK tests passed. TypeScript passed.
  • The assembled browser and SDK bundles passed an offline HTTPS fixture using a cookie jar and the Fetch guard. It exercised two scores, the next request in dry-run mode, and a request without a cookie.
  • Regression tests cover absent proof, an expired receipt, and host and site isolation.

@cport1
cport1 merged commit 0a05ad2 into main Nov 23, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant