Skip to content

Commit f7fdf4e

Browse files
fix(website): correctly check https
1 parent eda0f12 commit f7fdf4e

File tree

1 file changed

+1
-1
lines changed
  • packages/overmind-website/backend

1 file changed

+1
-1
lines changed

packages/overmind-website/backend/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ const googleCrawlMiddleware = async function ssr(req, res, next) {
132132

133133
if (IS_PRODUCTION) {
134134
app.use((req, res, next) => {
135-
if (req.secure) {
135+
if (req.get('x-forwarded-proto') === 'https') {
136136
next()
137137
} else {
138138
res.redirect('https://' + req.headers.host + req.url)

0 commit comments

Comments
 (0)