[!!!] add cookies and headers in the postprocess event instead of preprocess