Open
Description
We should provide a way for Spring Session to programmatically disable Spring Security's CSRF support on requests in which x-auth-token is used for establishing the session.
We could perhaps disable CSRF in Spring Security when:
- x-auth-token is provided
- No cookies are present (specifically JSESSIONID, but remember the cookie name can be configured)
We should be mindful of how this works in a CORS scenario.
If changes are made to Spring Security we should be mindful of how this will work in an OAuth Scenario