Skip to content

Send a Turnstile answer when cloning an app - #845

Merged
charles-ramos merged 3 commits into
production2from
security/turnstile-clone-app
Nov 20, 2026
Merged

charles-ramos merged 3 commits into
production2from
security/turnstile-clone-app

Conversation

@nataliaconde

@nataliaconde nataliaconde commented Nov 20, 2026 •

Copy link
Copy Markdown

No description provided.

Natália Condê and others added 3 commits November 20, 2026 10:26
The back4app API now creates a Parse app (POST /create-parse-app) only with a
Cloudflare Turnstile answer for 'create-backend-app', and the clone flow calls
that route. The clone modal gets a fresh token (they are good once) right
before creating the app and sends it as cf-turnstile-response. No token: the
API is not called. A refused captcha shows "The captcha failed" and the next
click gets a new token.

TURNSTILE_SITE_KEY (the same widget key as the back4app2 dashboards) reaches
the bundle through DefinePlugin; the deploy scripts stop without it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@back4app/back4app-settings 1.6.8 carries TURNSTILE_SITE_KEY for production and
homolog, and the bundle already embeds those settings (b4aSettings). The key
now comes from there, so a deploy needs no extra environment variable: the
env-var plumbing in webpack, the Dockerfile and the deploy scripts is dropped.
dev.json has no key, so a local build uses Cloudflare's always-pass test key.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@charles-ramos
charles-ramos merged commit d1f14fb into production2 Nov 20, 2026
0 of 7 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.

2 participants