Skip to content

Captchacat-Integrations/ExpressJs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Captchacat - Express.js Demo

Express.js example application demonstrating Captchacat integration.

Setup

npm install
npm start

Server runs at http://localhost:4242

Configuration

Edit values in app.js:

const CAPTCHACAT_API_KEY = "your-api-key";
const CAPTCHACAT_SITE_KEY = "your-site-key";

How It Works

  1. The form loads the captcha widget via <script src="https://challenge.captchacat.com/ray/widget.js">
  2. Widget renders in <div class="captcha-widget" data-sitekey="...">
  3. On verification, widget adds hidden captchacat-token field to form
  4. Server validates token by POSTing to https://challenge.captchacat.com/validate_token

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors