By default, cross-domain workbook and data connection access is not allowed. To allow workbooks in trusted file locations
stsadm.exe -o Set-EcsSecurity -Ssp -AllowCrossDomainAccess true|false
The requesting Web pages and the workbooks or data connections must reside in the same farm.