首页 > 解决方案 > 与nodejs服务器反应本机应用程序中的网络错误

问题描述

我在用

const url="http://localhost:3000/user/login"

它通过使用节点js反应本机应用程序中的错误网络块,节点js服务器中的服务器我已经安装了cors我能够通过网络发送数据但不能从android和iosi通过用当前IP替换localhost获得解决方案

 const url="http://myIp:3000/user/login"

想要任何人都可以提供的永久解决方案吗?

标签: node.jsreactjsreact-nativereact-hooksreact-native-android

解决方案


推荐阅读