These are chat archives for ushahidi/Community
I have the same problem like this guy here https://forums.ushahidi.com/t/cant-connect-to-ushahidi-installation-from-android-app/4356
I already tried the solution mentioned (put the config.json in platform/httpdocs), but still don't work. I'm using Xampp apache btw, so I put the CORS header on httpd.conf (inside the "<virtualhost *:80>). I already did it with the .httaccess but can't load the website, only if in the httpd.conf from the apache that able to run in website but not on android. I wonder where did I go wrong.
I'm running on api.iresponse.com:8081
my config.json is:
the code added in my httpd.conf is:
Header set Access-Control-Allow-Origin "*"
Header set Access-Control-Allow-Methods "GET, POST, OPTIONS"
Header set Access-Control-Allow-Headers "DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range"
Header set Access-Control-Expose-Headerss "DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range"
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn