Intermittent authoring issue in AEM
Some of our authors reporting intermittent issue (like once a month per user behavior) while authoring pages in our internal prod author.
Issue is that they are not able to save component dialogs in middle of authoring work even though they are able to login and navigate through pages. They get error failed to submit form. Upon clearing cache for all time and logging in again only is fixing this issue. Same time they are able to edit and save using other browser.
upon checking HAR file we see that the csrf token request is giving 403 response (I think only post calls are not getting authenticated) and on further checking their login-token cookie is missing in the browser. This issue is not getting solved until they clear cache for all time and force login back.
Is there any reason why the login-token OOTB cookie get dropped or not being set for a logged in session (even though the user is logged in and can navigate through pages and even can see component edit dialogs)?
Below are some log lines at the same time user is trying to save component dialog-
04.03.2026 15:01:31.664 *INFO* [10.29.102.38 [1772636491662] POST <page_path> HTTP/1.1] com.adobe.granite.csrf.impl.CSRFFilter isValidRequest: empty CSRF token - rejecting
04.03.2026 15:01:31.664 *INFO* [10.29.102.38 [1772636491662] POST <page_path> HTTP/1.1] com.adobe.granite.csrf.impl.CSRFFilter doFilter: the provided CSRF token is invalid
04.03.2026 15:01:31.856 *INFO* [qtp342047583-17481] org.apache.sling.auth.core.impl.SlingAuthenticator getAnonymousResolver: Anonymous access not allowed by configuration - requesting credentials
04.03.2026 15:01:31.860 *WARN* [qtp342047583-17481] org.apache.sling.auth.core.AuthUtil isRedirectValid: Redirect target must not be empty or null