Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/181.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 反应本机调试器抛出';访问控制允许原点';错误_Android_Ios_Reactjs_Debugging_React Native - Fatal编程技术网

Android 反应本机调试器抛出';访问控制允许原点';错误

Android 反应本机调试器抛出';访问控制允许原点';错误,android,ios,reactjs,debugging,react-native,Android,Ios,Reactjs,Debugging,React Native,我的应用程序在emulator上加载得非常好,所有请求都通过了,但打开远程调试器后,应用程序无法对服务器进行api调用 调试器显示错误 Failed to load https://mydatapoint/api: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8081' is therefore not allowed access.

我的应用程序在emulator上加载得非常好,所有请求都通过了,但打开远程调试器后,应用程序无法对服务器进行api调用

调试器显示错误

Failed to load https://mydatapoint/api: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8081' is therefore not allowed access.

不确定问题的原因。是否有帮助或线索?

能否显示请求标题?