Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

server functions not getting correct headers on initial load #3192

Closed
noah-wardlow opened this issue Jan 18, 2025 · 1 comment
Closed

server functions not getting correct headers on initial load #3192

noah-wardlow opened this issue Jan 18, 2025 · 1 comment

Comments

@noah-wardlow
Copy link

noah-wardlow commented Jan 18, 2025

Which project does this relate to?

Start

Describe the bug

as of 1.95.7, you could call getHeader("host") from a server function and it would give the full domain: eg: subdomain.localhost:3000,

after 1.96, the host the only returns as localhost:3000

oddly, if you router.invalidate() lower in the app, it will return the full headers

Your Example Website or App

n/a

Steps to Reproduce the Bug or Issue

  1. call a server function from a subdomain
  2. in that server function collect the headers
  3. see that the headers have the incorrect host

Expected behavior

As a user I'd expect the correct host headers from where the server is function is called

Screenshots or Videos

No response

Platform

  • OS: [e.g. macOS, Windows, Linux]
  • Browser: [e.g. Chrome, Safari, Firefox]
  • Version: [e.g. 91.1]

mac os
chrome
version 1.97.2

Additional context

No response

@schiller-manuel
Copy link
Contributor

duplicate of #3173

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

No branches or pull requests

2 participants