Added this.secure = true. This is absolutely necessary. Formatting.