Why CSRF token.json call is breaking sso login redirect on timeout



Hi All,

We are getting some issue with the /libs/granite/csrf/token.json call in our application.  We have SSO logout time is 15 min and around every 5 min the token.json call is triggering and getting empty response because the user is anonymous but after 15 minute SSO timeout, a call to token.json is being made which is forced to redirect to the SSO login server. For some reason that redirect call is being canceled.

We are using AEM 6.3 version.

Please help me to find why the SSO call if breaking and how to resolve this issue.