Simple example how to use Spring security to secure your REST API against csrf attacks