XentoxHD
XentoxHD4w ago

Provide Hostname in actions

I personally use turnstile and i would love to validate the hostname of the request. I have not found any documentation if i can currently obtain the hostname of the request in an action. https://developers.cloudflare.com/turnstile/get-started/server-side-validation/
Cloudflare Docs
Validate the token
Learn how to securely validate Turnstile tokens on your server using the Siteverify API.
4 Replies
Convex Bot
Convex Bot4w ago
Thanks for posting in <#1088161997662724167>. Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets. - Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.) - Use search.convex.dev to search Docs, Stack, and Discord all at once. - Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI. - Avoid tagging staff unless specifically instructed. Thank you!
erquhart
erquhart4w ago
You can access the request object for http actions, but not for regular query/mutation/action.
XentoxHD
XentoxHDOP4w ago
So you would propose moving all interactions that should be turnstile protected to POST requests to access the hostname? I would love to have that still as action... do you plan on adding such information to actions?
erquhart
erquhart4w ago
It's possible, but not something currently planned

Did you find this page helpful?