"No valid CSRF token in this request" error thrown

I have a new Appian 21.3 installed running on Tomcat 8.5.70 as the application server. I'm getting the following CSRF token not valid error followed by 404 /suite/masterapp/undefined.cache.js is not available. I have tried adding <Context useHttpOnly="false"> in the Tomcat context.xml but still getting the error. This issue is preventing me from opening the editor for editing the form fields.

Have I missed some configuration on Tomcat?

Thanks.

2022-01-21 03:13:52,683 [http-nio-8080-exec-6] WARN  com.appiancorp.security.csrf.CsrfTokenManager - There is no valid CSRF token in this request [URI=/suite/framework/backgroundAction.none,method=POST,content-type=application/x-www-form-urlencoded]
2022-01-21 03:13:53,602 [http-nio-8080-exec-4] ERROR com.appiancorp.ap2.PortalResponse - Error: 404 Message: The requested resource [/suite/masterapp/undefined.cache.js] is not available

  Discussion posts and replies are publicly visible