Access to path "/libs/granite/csrf/token.json" is returning 404.
csrf token are successfully generated at AEM stage environment both author and publishers.
The problem is coming probably at dispatcher or CDN level. I am not sure where to look further to resolve this issue.
At dispatcher level , I can see following logs:
[Wed May 08 02:32:00 2024] [D] [pid 11304 (tid 11668)] checking [/libs/granite/csrf/token.json]
[Wed May 08 02:32:00 2024] [D] [pid 11304 (tid 11668)] request URL not in cache rules: /libs/granite/csrf/token.json
[Wed May 08 02:32:00 2024] [D] [pid 11304 (tid 11668)] cache-action for [/libs/granite/csrf/token.json]: NONE
Above logs conclude that the token is not cached at dispatcher<OK>
And also in logs I can see following which is where I am looking for help :
[Wed May 08 02:32:00 2024] [D] [pid 11304 (tid 11668)] Name not in ignored URL parameters ACL: 404;http://secure-stage.abc.info:80/libs/granite/csrf/token.json
[Wed May 08 02:32:00 2024] [D] [pid 11304 (tid 11668)] request contains a query string: 404;http://secure-stage.abc.info:80/libs/granite/csrf/token.json
Strangely I have checked at PROD environment, with similar configuration at CDN and dispatcher level, the csrf token is generated properly.
I am suspecting the issue might be there at IIS server (used for hosting application), dispatcher or CDN.
Can anyone help here?