Spring Security offers CSRF (cross-site request forgery) protection by default for Java web applications. In this post I will examine how you can make that CSRF protection work for a web client interacting with REST-based CSRF-protected services. Both the web client’s code and the server application’s configuration will be described.
Sometimes you don’t need a huge framework for your web application. Client-side routing, for example, is something that can easily be achieved with a micro framework such as Crossroads. Let me give you a brief intro on how to setup a simple routing solution.