Repository navigation
Send a Turnstile answer when cloning an app - #845
Merged
Merged
Conversation
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
approved these changes
Nov 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.