codeforamerica / MuniciPal

:speech_balloon: Consulting city-dwellers about legislation near them.
22 stars 14 forks source link

page resources don't load over HTTPS, causes site to look odd #135

Closed techieshark closed 9 years ago

techieshark commented 9 years ago

The sites http://mesamunicipal.herokuapp.com/ and https://mesamunicipal.herokuapp.com/ (HTTPS) should look the same. Currently they don't, and when viewing the console in Chrome you can see errors related to resources that wouldn't load over HTTPS:

image

Fixing this should close out https://github.com/CityOfMesaAZ/MuniciPal/issues/8 as well.

techieshark commented 9 years ago

I think @vancefsmithmesa had the right idea with this commit but the trick is that yahooapis.com only works on HTTP; for HTTPS we need to switch to a different CDN. See "Alternate CDNs" on Pure's customization docs.

techieshark commented 9 years ago

More info about the issue on IE at the blog linked below:

"the mixed content warning occurs when a web developer references an insecure (http) resource within a secure (https) page." - MSDN blog