Hi all,
Thanks in Advance
I have Dynamics CRM online (*.dynamics.com) and Azure webapp (*.azure.com) running aspx pages.
In the Azure webapp get window.parent getting cross site scripting error.
Please advise CRM and webapp in iframe calling parent objects
Thanks,
Vijay
*This post is locked for comments
Thanks all. I solved the issue. I am passing data to webresource and from there calling window.parent
I don't think that there is any way to remove that cross-domain scripting limitation.
If you plan to update pages using window.parent the only way for you is to convert your apps to html-webresources. They are hosted in the same domain so there will be no cross-domain scripting limitations.
Good luck.
Thanks Andrew for inputs. I am moving an onpremise crm 2011 to crm 365. I have lot of pages which are reading crm fields and updating them via DOM window.parent. My setup is crm online and Azure webapp. I curious both are from microsoft hosting.
if there is any option/feature to solve the cross site scripting issues or as you suggested have to modify the current pages
Hello Vijay,
Until apps are located in different domains you will get those errors. What do you want to get from parent form? If you want to get some data you will have to pass it through URL of embedded app. I'm afraid there is no better way of doing that.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156