Hello,
I set hook: false when registering the plugin to avoid parsing cookies for all routes and only parse them manually for the routes I wanted to read cookies.
Turns out this setting also disables setting cookies:
https://github.com/fastify/fastify-cookie/blob/cd9f41509753423deedfb480760adf710a0b4ec9/plugin.js#L147:L150
Isn't it a better behavior if it only disables parsing incoming cookies, but allows for setting cookies for responses?
Hello,
I set
hook: falsewhen registering the plugin to avoid parsing cookies for all routes and only parse them manually for the routes I wanted to read cookies.Turns out this setting also disables setting cookies:
https://github.com/fastify/fastify-cookie/blob/cd9f41509753423deedfb480760adf710a0b4ec9/plugin.js#L147:L150
Isn't it a better behavior if it only disables parsing incoming cookies, but allows for setting cookies for responses?