DEV Community

Discussion on: NodeJs Response

Collapse
 
adam_cyclones profile image
Adam Crockett 🌀

A custom key on the response object, I don't think that's how it's done.

Browser makes request, server sends response, response could headers and cookies, custom x- headers, custom cookies, or even something more exotic like server sent events or websockets, you could even inject a script into the body of the page with the values in the global scope.