crow icon indicating copy to clipboard operation
crow copied to clipboard

set cookie with json response

Open UtopiaBe opened this issue 5 years ago • 1 comments

Hello, how can i return a json response to the client and also add a header with Set-Cookie?

UtopiaBe avatar Dec 12 '19 09:12 UtopiaBe

Did you try to do something similar as in https://github.com/ipkn/crow/blob/49edf898a5b9a39a0d69072cc2434c4f23692908/examples/example_chat.cpp#L51 and add res.add_header("Set-Cookie", "")?

mrozigor avatar Dec 17 '19 10:12 mrozigor