ICTatRTI / coconut-analytics

Browserified & backboned version of coconut-reports
Other
2 stars 3 forks source link

Admin | DHIS2 | TEST SETTINGS: Fails with error message #319

Open gmcressman opened 6 years ago

gmcressman commented 6 years ago

screen shot 2017-12-21 at 2 58 22 pm

scloo commented 6 years ago

Console error message: Mixed Content: The page at 'https://cococloud.co/democs/_design/analytics/index.html#admin/dhis2' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://dhis2.zanzibar.ictedge.org/dhis-web-commons/security/login.action'. This request has been blocked; the content must be served over HTTPS.

For some reason the Ajax transmit via http protocol, even though the URL has https specified.

scloo commented 6 years ago

Two causes for the problem.

  1. Need to add the domain names to DHIS2 server settings as CORS whitelist, as urls:
  2. Bug - Dhis2View is not passing username and password to dhis2 test method, due to incorrect naming.