Global AIF Setting without which AIF Services will Not Work in AX 2012 R2
1. Go to AOT.
2. There is a Form called “AifGlobalSettings”.
3. Right Click & Open the form [Refer to the below snapshot of the form]

4. There is a check box called “Enable Runtime Caching”.
5. Make sure the check box is checked else the AIF services will NOT be accessible from outside.
Related posts:

How to Extend Dynamics 365 CRM Using Side Panes: A Practical Implementation for a US-Based Kitchen A...
D365 CRM - Generating Emails using JavaScript via user actions for US based Azure & AI services ...
How a Multi-Country Infrastructure Group Evaluated One vs Two Production Environments in Dynamics 36...

