rclement / datasette-dashboards

Datasette plugin providing data dashboards from metadata
https://datasette-dashboards-demo.vercel.app
Apache License 2.0
137 stars 8 forks source link

Plugin not working when Datasette setting `force_https_urls 1` #232

Closed king7532 closed 4 months ago

king7532 commented 4 months ago

When Datasette is deployed behind a load balancer or reverse HTTP proxy that handles TLS/SSL, and is configured with the setting force_https_urls 1. Then the datasette-dashboards plugin does not work, and the the following error message is shown in the Chrome browser console:

Mixed Content: The page at '<URL>' was loaded over HTTPS, but requested an insecure resource '<URL>'. This request has been blocked; the content must be served over HTTPS.

https://docs.datasette.io/en/stable/settings.html#force-https-urls

king7532 commented 4 months ago

False alarm, this is NOT a bug. Apparently, after investigating my Datasette instance settings (https://HOSTNAME/-/settings) I did NOT have force_https_urls set to true. After making the change, everything works as expected.