I have a scenario, in which a .net application is hosted from SAP portal.
- SAP portal domain: portalURL.al.xx.company.com
- App server domain: AppURL.ss.xx.company.com
As you can notice the portal and the app server domains are not same 1 level up.(i.e. at 1 level up, portal domain will be al.xx.company.com & app server will be ss.xx.company.com).
However at 2 levels up both the portal and app server domains are same. (i.e. xx.company.com).
In my JavaScript code, I have set the document.domain object to be xx.company.com. However still I am getting 'permission denied' error.
The protocol of both portal and appserver are same.
Will the cross domain scripting under same-origin law work only if the domains are same at 1 level up? Please let me know.