使用React Native和Php隐藏json数据
我的应用程序使用React Native和Php。Php从mysql返回json数据。但如果用户在google中输入我的获取url,他可以看到我的json数据。如何隐藏我的数据使用React Native和Php隐藏json数据,php,react-native,Php,React Native,我的应用程序使用React Native和Php。Php从mysql返回json数据。但如果用户在google中输入我的获取url,他可以看到我的json数据。如何隐藏我的数据 $json = file_get_contents('php://input'); $result = mysqli_query($link, "SELECT * FROM news"); if(mysqli_num_rows($result)) { while($row[] = mysq
$json = file_get_contents('php://input');
$result = mysqli_query($link, "SELECT * FROM news");
if(mysqli_num_rows($result)) {
while($row[] = mysqli_fetch_assoc($result)) {
$json = json_encode($row);
}
}else {
echo 'connection error';
}
所有可以在浏览器中完成的事情,用户可以通过浏览器的开发工具手动完成。因此,“隐藏”数据不是正确的解决方案 我的建议是: