CorpGlory / grafana-data-exporter-panel

Panel for exporting metrics from Grafana dashboards
32 stars 8 forks source link

Error: Mixed Content when grafana behind HTTPS and server behind HTTP #29

Open amper43 opened 5 years ago

amper43 commented 5 years ago

grafana-data-exporter-panel get following error if grafana behind HTTPS and server behind HTTP we should handle this case and show user understandable warning at least.

angular.js:12759 Mixed Content: The page at 'https://play.hastic.io/d/s1PVviNmk/nginx?orgId=1' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://<url>:10000/tasks'. This request has been blocked; the content must be served over HTTPS.
Pepo-BG commented 4 years ago

Hello, I have a similar issue: Mixed Content: The page at 'https://dashboard.{my-domain-removed}.com/d/P7kCXDomk/grafana-data-exporter-panel?orgId=2&var-BACKEND_URL=http:%2F%2Fdashboard.{my-domain-removed}.com' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://dashboard.{my-domain-removed}.com/tasks'. This request has been blocked; the content must be served over HTTPS.

Possibly unhandled rejection: {"message":"Unexpected error"}

And in the network - tab has (blocked:mixed-content) OPTIONS request to the http://dashboard.{my-domain-removed}.com/tasks

Do you have any solution yet? Thank you!

rozetko commented 3 years ago

It'll be fixed with https://github.com/CorpGlory/grafana-data-exporter-panel/issues/21

Dhyanesh97 commented 2 years ago

Facing same issue. API endpoints are deployed as a docker container in ec2 machine and from Grafana cloud we are trying to access those endpoints using HTML, Button, AJAX plugins but getting same error as "Mixed Blocked".

API call issue