We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73fb9e7 commit 4d7a674Copy full SHA for 4d7a674
app/utils/misc.tsx
@@ -67,7 +67,7 @@ export function getDomainUrl(request: Request) {
67
request.headers.get('X-Forwarded-Host') ??
68
request.headers.get('host') ??
69
new URL(request.url).host
70
- const protocol = host.includes('localhost') ? 'http' : 'https'
+ const protocol = request.headers.get('X-Forwarded-Proto') ?? 'http'
71
return `${protocol}://${host}`
72
}
73
0 commit comments