You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2020/12/16 14:49:19 UTC

[GitHub] [cordova-plugin-whitelist] breautek commented on issue #43: Network Error cordova android@8.0.0[bug]

breautek commented on issue #43:
URL: https://github.com/apache/cordova-plugin-whitelist/issues/43#issuecomment-746411252


   I'm closing this issue because the OP's issue is not clear and the direction of this thread has diverged into multiple areas.
   
   There are two different issues that eventually have been discussed throughout this thread.
   
   If you're communicating with non-secure sites (ie servers served over `http` instead of `https`), Android now blocks them by default. The server should be updated to serve through https instead. But if for some reason you cannot make this change, this [comment](https://github.com/apache/cordova-plugin-whitelist/issues/43#issuecomment-519107090) may be a workaround for you.
   
   If you're seeing an error similar to this one below:
   ```
   No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8080' is therefore not allowed access.
   ```
   
   Then you must update your server to enable [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS). This [comment](https://github.com/apache/cordova-plugin-whitelist/issues/43#issuecomment-539524095) may help you. I also have a [blog post](https://breautek.com/2020/07/14/enabling-cors/) that goes into more depth on how to enable CORS.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org