Attempt to set cookie inside server handle throws TypeError: immutable #6755
-
Example code:
I'm not sure if the header guard being set to immutable prior to event resolution inside handle is expected or not. Or even if anyone else has experienced this? Currently running |
Beta Was this translation helpful? Give feedback.
Answered by
eltigerchino
Sep 12, 2022
Replies: 1 comment 1 reply
-
I think you should create an issue for this. This should be clarified in the docs or removed/fixed if it unintended behaviour. Previously, to set cookies in |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
astev89
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think you should create an issue for this. This should be clarified in the docs or removed/fixed if it unintended behaviour.
Previously, to set cookies in
handle
, you'd have to add it toresponse.headers
afterresolve(event)
.