Skip to content

DOCS: Note the differing nonce_verify default on draft endpoints - #17

Open
dhrupo wants to merge 1 commit into
mainfrom
docs/nonce-verify-endpoint-defaults
Open

DOCS: Note the differing nonce_verify default on draft endpoints#17
dhrupo wants to merge 1 commit into
mainfrom
docs/nonce-verify-endpoint-defaults

Conversation

@dhrupo

@dhrupo dhrupo commented Aug 10, 2026

Copy link
Copy Markdown
Member

Summary

fluentform/nonce_verify defaults to off for form submission but on for the Save & Continue (draft/partial entry) endpoints. The page documented only the submission default and scoped the filter to FormValidationService->validateNonce(), so a site owner working around full-page caching had no way to learn the draft endpoints behave differently — or that opting out there also disables the nonce on the resume-link email endpoint.

Related issue: Refs: https://lounge.authlab.io/projects#/boards/16/tasks/22244-DraftSubmissionsManager%3A%3Averif

Cross-repo PRs: fix: https://github.com/fluentform/fluentformpro/pull/256 (pro) · tests: https://github.com/fluentform/fluentform-dev/pull/1123

Changes

Adds a "Defaults differ by endpoint" section to the fluentform/nonce_verify block in src/hooks/filters/miscellaneous.md:

  • a table of the two defaults and where each is applied
  • all five draft endpoints named, so the blast radius of returning false is explicit
  • a note that the per-IP rate limit becomes the only remaining control on the resume-link email endpoint
  • the full-page-cache rationale (frozen nonce, ~12h tick, HTTP 422)

How to verify

  1. npm run dev (or the project's usual preview command).
  2. Open Hooks → Filters → Miscellaneous and find fluentform/nonce_verify.
  3. The new section renders below the existing Reference line, with the table intact.

Anything the reviewer should know?

This documents behaviour introduced by the matching Pro PR — it should not land before that one, or it will describe a default the code does not yet have.

Depends on Pro's decision that the draft default stays true. If that PR ends up flipping to false for parity with submission, this page needs a corresponding edit.

fluentform/nonce_verify defaults to off for submission but on for the
Save & Continue endpoints. The page documented only the submission
default, so a site owner working around full-page caching had no way to
know the draft endpoints behave differently.

Refs: https://lounge.authlab.io/projects#/boards/16/tasks/22244-DraftSubmissionsManager%3A%3Averif
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying fluentform-developers with  Cloudflare Pages  Cloudflare Pages

Latest commit: 5bf992d
Status: ✅  Deploy successful!
Preview URL: https://35e221b2.fluentform-developers.pages.dev
Branch Preview URL: https://docs-nonce-verify-endpoint-d.fluentform-developers.pages.dev

View logs

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