Spring Single Page Application: CSRF token changing silently after login, logout etc -
as know, in spring+javascript single page application, need send csrf token client in way.
a recommended way have csrfheaderfilter
described in spring guide. following approach, when application start, send request server, fetching token.
but see under events login or logout, spring security changes token. csrfheaderfilter
comes beforehand, , can't detect change. hence, needing send request following such events.
i tried peeping @ spring security code find if there way send changed token along these login or logout requests, request saved. but, not find way.
liked know if sending dummy request after login, logout etc., doing, looks solution. or, maybe there better way?
if there no way avoid redundant request, wondering if becomes ticket spring security come after possible.
Comments
Post a Comment