The following is a helpful Dataweave (2.0) code to allow you to extract cookie value coming in via Cookie
header.
%dw 2.0
output application/java
---
(payload splitBy "; " map ($ splitBy "=") reduce (item, accum = {}) -> (accum ++ { (item[0]): item[1] })) ['csrftoken']
"PHPSESSID=413; csrftoken=444t4#tb3gg43; _gat=1"
444t4#tb3gg43