Did you check error logs? in both environments?
Review the AEM error logs (error.log) in both environments for any exceptions or warnings when accessing .infinity.json.Look for issues related to Sling Models, resource resolution, or servlet handling.
Check Sling Mappings and Resource ResolutionV...