fixed bug with development using ssl domain on herokuapp.com