title: How to configure Spring Security to send 'X-CSRF-TOKEN'?
body: <p>The problem is to get the CSRF tokens working between Spring Security and Angular.</p>
  
  <p><a href="https://github.com/aditzel/spring-security-csrf-token-interceptor" rel="noreferrer">Spring Security CSRF Token Interceptor for Angular</a> seems like something that should do the job, but there is no 'X-CSRF-TOKEN' in the HEAD response from the server.</p>
  
  <p>My current tiny implementation is available in <a href="https://github.com/masa67/spring-security-ng" rel="noreferrer">GitHub</a> (Tag <code>v.1.0</code>) and I would appreciate a lot if somebody who knows the topic would have a quick look on the code, the problem should be easy to spot.</p>
  
  <p>Based on the documentation, I am under the impression that CSRF should have been enabled automatically, but that seems not to be the case.</p>
  
  <p>I am using Spring Boot and prefer the annotation-based configuration over XML, if something needs to be configured differently.</p>
  
  <p>Any other approaches to make Spring Security work against Angular?</p>