Pre-Clearance support for single-page applications
You can integrate Cloudflare challenges on single-page applications (SPAs) by allowing Turnstile to issue a Pre-Clearance cookie. The Pre-Clearance level is set upon widget creation or widget modification using the Turnstile API’s
clearance_level. Possible values for the configuration are
interactive. All widgets are set to
no_clearance by default.
For Enterprise customers eligible to toggle off domain checks, Cloudflare recommends issuing Pre-Clearance cookies on widgets where at least one domain is specified.
Pre-Clearance level options
Enable Pre-Clearance on a new site
- Log in to the and select your account.
- Go to Turnstile > Add Site.
- Under Would you like to opt for Pre-Clearance for this site? select Yes.
- Choose the Pre-Clearance level from the select box.
- Select Create.