tkyaji / cordova-plugin-crypt-file

This plugin to encrypt the source files.
Apache License 2.0
178 stars 116 forks source link

Problem with CORS #4

Closed gerbil closed 8 years ago

gerbil commented 8 years ago

I/chromium(24780): [INFO:CONSOLE(0)] "XMLHttpRequest cannot load http://backend:11000/login. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost' is therefor e not allowed access. The response had HTTP status code 404.", source: http://localhost/index.html#/ (0)

Without plugin everything working fine. Access-Control-Allow-Origin is present in response header, i've checked that from two devices & pc. Seems like config.xml is not working like it should or some other stuff..

tkyaji commented 8 years ago

In the case of android, it will be run as localhost. Therefore, you need to allow localhost in Access-Control-Allow-Origin.