Summary
Enable Turnstile bot protection on the OSA Cloudflare Worker. Currently disabled (no secret configured).
Steps
- Go to Cloudflare Dashboard → Turnstile
- Create new widget with Visible mode
- Add allowed hostnames:
hedtags.org
hed-examples.org
osc.earth
localhost
- Copy the Site Key (for frontend integration)
- Copy the Secret Key and set it:
cd workers/osa-worker
bunx wrangler secret put TURNSTILE_SECRET_KEY
Frontend Integration
Add to any frontend that calls the worker:
<script src="https://challenges.cloudflare.com/turnstile/v0/api.js" async defer></script>
<div id="turnstile-container"></div>
<script>
turnstile.render('#turnstile-container', {
sitekey: 'YOUR_SITE_KEY',
callback: function(token) {
// Include token in API requests as cf_turnstile_response
}
});
</script>
References
Summary
Enable Turnstile bot protection on the OSA Cloudflare Worker. Currently disabled (no secret configured).
Steps
hedtags.orghed-examples.orgosc.earthlocalhostcd workers/osa-worker bunx wrangler secret put TURNSTILE_SECRET_KEYFrontend Integration
Add to any frontend that calls the worker:
References
workers/osa-worker/.context/security-architecture.md