Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问当我的react-native 的js里拿到ip之后, 我改怎么使用这个IP呢? #4

Open
BennyTian opened this issue Jul 24, 2023 · 0 comments

Comments

@BennyTian
Copy link

感谢提供的组件~
我们是RN项目, 使用了https 协议.

rn 自带的 XMLHttpRequest 不允许修改host头信息,

请问当我的rn拿到我指定域名的ip之后, 我该怎么使用这个ip才能获取到数据呢? 后端都是使用了https+域名的方式,

postman里 , 使用 https://IP/PATH , 再设置一个 host 头信息是可以获取到的,但是在 rn里, 使用 axios 或者是 XMLHttpRequest 都会出现https签名问题.

请问这个问题有什么办法吗?

再次感谢!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant