SolidJSS
SolidJSโ€ข3y agoโ€ข
7 replies
Samual ๐Ÿฆข

set response header from within `createServerData$()` callback

hi how do I set a response header from within the callback of createServerData$()?
useRequest().responseHeaders is
undefined
(despite typescript saying it's always a Headers object)
this evaluates to a different PageEvent that is also missing the responseHeaders property
I've tried setting the .responseHeaders property with the headers I want myself on both but neither worked

my goal is just to set a cookie when the server data is fetched, that's all I want
Was this page helpful?