Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't find react Native app domain

Tags:

react-native

I develop server app for my React Native project and I want to say to my server to trust to only my React Native app, but I can't find my app domain.

like image 583
rel1x Avatar asked Apr 29 '26 07:04

rel1x


1 Answers

There's no concept of a domain in React Native or any other native app. Even so, checking the client's domain is not a secure way of authenticating your users. It is really easy for someone to create a script or program that pretends to send requests from your domain.

What you should do is build a login system for your users so that you can securely authenticate your users instead of your app.

like image 186
ide Avatar answered May 03 '26 01:05

ide



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!