#Setting cookies on endpoint responses

3 messages · Page 1 of 1 (latest)

serene portal
#

How do I set a cookie while sending a response back from a server endpoint in a SSR enabled project?

#

For example, if this is a response from an endpoint

return new Response(JSON.stringify({
}), {status:200});
#

how do I set headers on it?