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
In Start 1.97, request headers and cookies from helper functions in @tanstack/start/server or vinxi/http (e.g. getWebRequest) are initially incomplete in server functions called in loaders/beforeLoad, breaking auth stuff.
When navigating/loading another page which will re-trigger beforeLoad, getWebRequest() returns the complete headers.
Which project does this relate to?
Start
Describe the bug
In Start 1.97, request headers and cookies from helper functions in @tanstack/start/server or vinxi/http (e.g. getWebRequest) are initially incomplete in server functions called in loaders/beforeLoad, breaking auth stuff.
When navigating/loading another page which will re-trigger beforeLoad, getWebRequest() returns the complete headers.
Your Example Website or App
https://github.com/dotnize/tss-webrequest-server-fn
https://tss-webrequest-server-fn.vercel.app/
Steps to Reproduce the Bug or Issue
This is reproducible in dev and build.
Expected behavior
Complete headers are always returned by getWebRequest in 1.95.x
Screenshots or Videos
Screencast.From.2025-01-15.16-54-05.mp4
Platform
Additional context
No response