There is an application for angular material when authorizing I put "remembe my" and if I don’t take any actions to the application for a long time and then send the data via POST ajax, then there will be an error that page 403 was not found, and if the page is updated (F5), This will not require authorization and ajax post will be sent normally. How can this be fixed or can it be any Spring Security setting?