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
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!
You can access the request object for http actions, but not for regular query/mutation/action.
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?
It's possible, but not something currently planned