简体   繁体   中英

React app works fine but not on mobile browsers

My react-redux app works fine on regular browsers but not on mobile browsers. I've used Remote Debugging on Android Devices to check what's going on and I get these 2 errors:

The app makes many fetch requests but I'm afraid that fetch is not supported by chrome mobile. Any help would be much appreciated.

Looks like a CORS problem. Make sure the protocol for your requests is "HTTPS". If you are using Node, in your server.js code, use the standard CORS npm package.

Chrome for Android, version 42 onwards supports the fetch API. Why aren't you using error handling if the promise is rejected anyway

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM