UTDNebula / jupiter

A tool to help students get involved on campus
https://jupiter.utdnebula.com
MIT License
14 stars 6 forks source link

fix: use headers to determine base url for auth redirect #222

Closed nl32 closed 8 months ago

nl32 commented 8 months ago

unfortunate that it's taken so many attempts, good learning though. now using the X-Forwarded-host and X-Forwarded-proto headers to determine what the url the client is using is and follow that. unfortunately really only testable in prod.

vercel[bot] commented 8 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
jupiter ✅ Ready (Inspect) Visit Preview Apr 6, 2024 0:11am
nl32 commented 8 months ago

real issue is that it's messy determining url from the server, but the ux is nicer if it works. this should definitely work unlike the last times, but I'll do some research into potential issues.