Skip to content

docs(express): README matches the middleware - #44

Merged
cport1 merged 1 commit into
mainfrom
docs/express-readme-current
Sep 23, 2026
Merged

cport1 merged 1 commit into
mainfrom
docs/express-readme-current

Conversation

@cport1

@cport1 cport1 commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

The Express README described the pre-0.7 middleware:

  • Quick start implied it blocks at the threshold; the default is mode: 'monitor', which never blocks. Now says so and shows mode: 'enforce'.
  • Says apiKey must be passed; the SDK never reads WEBDECOY_API_KEY by itself.
  • Custom IP section claimed it reads X-Forwarded-For / X-Real-IP; since 0.12.0 it uses req.ip or trustProxy.
  • Options list adds mode, honeytoken, rules, trustProxy, threshold, and onBlocked's next; apiUrl default is in.webdecoy.com.
  • API key steps and the docs link point at the current dashboard and docs site.

README only, no code change.

Documents monitor as the default mode, that apiKey must be passed (the
SDK never reads WEBDECOY_API_KEY itself), trustProxy instead of reading
X-Forwarded-For, onBlocked's next argument, honeytoken, rules, and the
current apiUrl default.
@cport1
cport1 merged commit f58db18 into main Sep 23, 2026
2 checks passed
@cport1
cport1 deleted the docs/express-readme-current branch September 23, 2026 03:01
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