Turnstile Mobile Hostname

What is the issue you’re encountering

I need to implement turnstile to my react native app, But I have no idea what hostname to use to Turnstile. Opinions clash between the server’s origin. And others tell me to use client origin (which is not an option in react native)…

Screenshot of the error

Hi there,

The hostname is the name of DNS record pointing to the origin.
IE you access the origin through https://myapp.mydomain.com/somepath, the hostname is myapp.mydomain.com, you access the origin through https://www.myapp.mydomain.com/someotherpath, the hostname is www.myapp.mydomain.com.

Take care.

Hi!
ok I get that, but in my case the only origin is the backend. so I should use that right?

I guess. The client will not use an IP to connect to your backend, correct? Add whichever hostname they use that resolves to the origin and you should be fine.

sorry for the late response, I did not see the notifications… I’m not sure I understand… Which hostname should I use?

The client is on a mobile app, with a web view open. so I can use the api-example.com as a hostname? I’m not sure this makes a sense.

or should I start a static site and open that site from webview, and add the static site as a hostname?

please correct me if I’m wrong.

Thank you.