You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when I print out the value of req.url it only gives me http://localhost:3000, however it correctly redirects to app.localhost:3000/login. So the req.url is clearly preserving the value somehow of the domain but doesn't show that when it prints. However, in the rewrite where we add /app to the path we also use req.url but if req.url is preserving the subdomain won't this lead to issues when it reaches the server? Not sure if I'm missing something but any clarity on this is appreciated!
The text was updated successfully, but these errors were encountered:
RahulBirCodes
changed the title
How does redirect preserve the subdomain when printing doesn't show the subdomain
How does redirect preserve the subdomain when printing req.url doesn't show the subdomain
Jul 27, 2024
In the middleware at this part where it matches requests accessing the app subdomain:
when I print out the value of req.url it only gives me http://localhost:3000, however it correctly redirects to app.localhost:3000/login. So the req.url is clearly preserving the value somehow of the domain but doesn't show that when it prints. However, in the rewrite where we add /app to the path we also use req.url but if req.url is preserving the subdomain won't this lead to issues when it reaches the server? Not sure if I'm missing something but any clarity on this is appreciated!
The text was updated successfully, but these errors were encountered: