How to forward defer's setCookie to the client response header in Remix #10218
Unanswered
19Qingfeng
asked this question in
Q&A
Replies: 2 comments 3 replies
-
Beta Was this translation helpful? Give feedback.
2 replies
-
The headers are sent on the response before the body Defer allows you to send a response and stream the body later If you need some data to set the headers then you need the data before you send the response This means you need to await that data and can't defer it anymore If the data is not required to set a header or status code you can defer it |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I need to forward all response headers to the client for effectiveness after the request in defer is returned, like this:
How to use https://api.example.com/messages Forward the returned responsiveHeader to the client?
Is there any mechanism or API in Remix that can be implemented
Beta Was this translation helpful? Give feedback.
All reactions