Express.js example application demonstrating Captchacat integration.
npm install
npm startServer runs at http://localhost:4242
Edit values in app.js:
const CAPTCHACAT_API_KEY = "your-api-key";
const CAPTCHACAT_SITE_KEY = "your-site-key";- The form loads the captcha widget via
<script src="https://challenge.captchacat.com/ray/widget.js"> - Widget renders in
<div class="captcha-widget" data-sitekey="..."> - On verification, widget adds hidden
captchacat-tokenfield to form - Server validates token by POSTing to
https://challenge.captchacat.com/validate_token