I am trying to implement CSRF protection in angular application using spring security. I have used cookie based repository. My understanding is that server will generate a c