React Native Chrome调试错误

错误:Access to fetch at ‘http://localhost:8081/index.delta?platform=android&dev=true&minify=false’ from origin ‘http://192.168.2.216:8081’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. If an opaque response serves your needs, set the request’s mode to ‘no-cors’ to fetch the resource with CORS disabled.

React Native Chrome调试错误_第1张图片
解决:将URl改成localhost
http://localhost:8081/debugger-ui/

你可能感兴趣的:(React,native从入门到放弃)