Enable (Global) HTTP State in Tools -> Options -> Connection of OWASP Zap tool [on hold]
Can you tell me how the option on OWASP ZAP 2.7.0 that I highlighted in this picture works:
You can see this option by follow Tools -> Options -> Connection. I used Spring Security and enbale csrf by configure: