I am trying to return CSRF token from a REST controller with spring 4 with xml based configuration.
I have tried this:
@RestController
public class Somecontroller{
@RequestMapping("/csrf")
public CsrfToken csrf(CsrfToken token) {
return token;
}
}
But I just get a 404. What am I missing? Everything else is working, as I can log initially.