By Dylan Barber on
3/20/2009 8:10 AM
Where I work, yes I sometimes work, full time we have run without ssl for a long time. In some ways it was a lack of need in others it was a lack of understanding of why we need it, not on my part but sometimes management still thinks like its 1970. Finally this last week we have gone through the painful process of putting security on all our public facing websites. Doing so always brings out legacy problems and the little quirks in your code and sometimes in other third party services. One of those quirks turned out to be Google Charts.
Google Charts doesn’t work over ssl it simply redirects to Google.com. We needed a solution to avoid panicking our users with the dreaded "some content came from an unsecured page" warning in the browser. After some research we wrote this little http handler to grab the chart and stream it to the page under ssl.
In order to use the HttpHandler we simply added a class to the App_Code folder but you could easily compile it to its own assembly if you wanted.
Add...