Facebook JavaScript SDK over HTTPS loading non-secure items

TL;DR set FB._https to true before calling FB.init. Like so: FB._https = true; FB.init({ /* your app id and stuff */ }); Explanation If you unminify the Facebook JavaScript SDK, you’ll see that its basically an object literal with a bunch of properties. One of these properties is _https, which is a boolean. This property … Read more

GitHub – HTTPS access

As you did saw yourself in GitHub support, Scott Schacon himself suggested: So I guess your .netrc is incorrect or something? Try removing the info from your .netrc and cloning first (since it’s a public repo). If it isn’t a GitHub server issue, it could be your firewall. And/or your proxy (git config –global http.proxy … Read more

How to set up Let’s Encrypt for a Go server application

This is the minimal automatic setup of an HTTPS server using Go and Let’s Encrypt certificates I have found: package main import ( “crypto/tls” “log” “net/http” “golang.org/x/crypto/acme/autocert” ) func main() { certManager := autocert.Manager{ Prompt: autocert.AcceptTOS, HostPolicy: autocert.HostWhitelist(“example.com”), //Your domain here Cache: autocert.DirCache(“certs”), //Folder for storing certificates } http.HandleFunc(“/”, func(w http.ResponseWriter, r *http.Request) { w.Write([]byte(“Hello … Read more

HTTP and HTTPS iframe

It is generally bad practice to embed an iframe with content served over HTTPS within a page served over plain HTTP (or mix content). The reason for this is that there’s no good way for the user to check they’re using the HTTPS site they intend (unless the user really wants to check the source … Read more