Skip to content

fix(clerk-js): Add support for loading Turnstile from Cloudflare host#4321

Merged
anagstef merged 3 commits intomainfrom
stefanos/user-852-serve-turnstile-without-fapi-proxying
Oct 14, 2024
Merged

fix(clerk-js): Add support for loading Turnstile from Cloudflare host#4321
anagstef merged 3 commits intomainfrom
stefanos/user-852-serve-turnstile-without-fapi-proxying

Conversation

@anagstef
Copy link
Member

@anagstef anagstef commented Oct 14, 2024

Description

This PR adds support for loading the Turnstile CAPTCHA script from the Cloudflare host. If the script fails to load from the Cloudflare URL, it falls back to a FAPI-proxied URL.

Checklist

  • npm test runs as expected.
  • npm run build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

This commit adds support for loading the Turnstile CAPTCHA script from the Cloudflare host. If the script fails to load from the Cloudflare URL, it falls back to a FAPI-proxied URL.
@anagstef anagstef self-assigned this Oct 14, 2024
@changeset-bot
Copy link

changeset-bot bot commented Oct 14, 2024

🦋 Changeset detected

Latest commit: 80f34d7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@clerk/clerk-js Patch
@clerk/chrome-extension Patch
@clerk/clerk-expo Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@anagstef
Copy link
Member Author

!snapshot

@clerk-cookie
Copy link
Collaborator

Hey @anagstef - the snapshot version command generated the following package versions:

Package Version
@clerk/chrome-extension 1.3.19-snapshot.v186f265
@clerk/clerk-js 5.26.5-snapshot.v186f265
@clerk/clerk-expo 2.2.25-snapshot.v186f265

Tip: Use the snippet copy button below to quickly install the required packages.
@clerk/chrome-extension

npm i @clerk/chrome-extension@1.3.19-snapshot.v186f265 --save-exact

@clerk/clerk-js

npm i @clerk/clerk-js@5.26.5-snapshot.v186f265 --save-exact

@clerk/clerk-expo

npm i @clerk/clerk-expo@2.2.25-snapshot.v186f265 --save-exact

@anagstef
Copy link
Member Author

!snapshot

@clerk-cookie
Copy link
Collaborator

Hey @anagstef - the snapshot version command generated the following package versions:

Package Version
@clerk/chrome-extension 1.3.19-snapshot.v80f34d7
@clerk/clerk-js 5.26.5-snapshot.v80f34d7
@clerk/clerk-expo 2.2.25-snapshot.v80f34d7

Tip: Use the snippet copy button below to quickly install the required packages.
@clerk/chrome-extension

npm i @clerk/chrome-extension@1.3.19-snapshot.v80f34d7 --save-exact

@clerk/clerk-js

npm i @clerk/clerk-js@5.26.5-snapshot.v80f34d7 --save-exact

@clerk/clerk-expo

npm i @clerk/clerk-expo@2.2.25-snapshot.v80f34d7 --save-exact

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants