Skip to content

Honor forwarded HTTPS for session cookies - #29

Merged
ralyodio merged 1 commit into
moshcoder:masterfrom
aiirvizionz:clientkit/secure-session-cookie-proxy
Jul 13, 2026
Merged

Honor forwarded HTTPS for session cookies#29
ralyodio merged 1 commit into
moshcoder:masterfrom
aiirvizionz:clientkit/secure-session-cookie-proxy

Conversation

@aiirvizionz

Copy link
Copy Markdown
Contributor

Summary

  • Detect the public HTTPS scheme from x-forwarded-proto, nextUrl, or request URL before falling back to deploy env.
  • Pass the active request into native login/signup and CoinPay callback session cookie creation.
  • Keeps session cookies Secure behind TLS terminators such as Cloudflare, Vercel, Railway, or nginx even when the app process receives HTTP internally.

Validation

  • .\node_modules.bin\tsc.CMD --noEmit
  • git diff --check

@ralyodio
ralyodio merged commit ffac5ca into moshcoder:master Jul 13, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants