How to enable Spring Security POST redirect after log in with CSRF?

后端 未结 4 1148
误落风尘
误落风尘 2021-01-05 20:49

I\'m using Spring Security 3.2 with CSRF. My configuration includes this:

  
  
<         


        
4条回答
  •  被撕碎了的回忆
    2021-01-05 21:46

    It's because HttpSessionRequestCache and DefaultSavedRequest are not designed to work with "multipart/form-data". Multipart request is treated as regular request and all form data is lost. The request restored from SavedRequest will contain only the URL and method.

提交回复
热议问题