Response from HTTP with GET method with params using axios in React Native
It seems you are working on IOS. Can you check your App Transport Security Settings in Project Setings with Xcode.
Xcode disable http connection as default only allows secure connection.
You should add “Allow Arbitary Loads” to your Project Settings
It seems to be a CORS issue.
If you are the owner of the script (on the server), you can add the appropriated response header for handling this issue. In PHP would be something like this:
For testing purposes (or if you don’t have access to the server), you can install a chrome extension which disables the cross-domain restrictions.
- Database Administration Tutorials
- Programming Tutorials & IT News
- Linux & DevOps World
- Entertainment & General News
- Games & eSport