Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

CRM iframe calling Azure Webapp page

Posted on by 75

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

  • Verified answer
    Vijayaraghavan Profile Picture
    Vijayaraghavan 75 on at
    RE: CRM iframe calling Azure Webapp page

    Thanks all. I solved the issue. I am passing data to webresource and from there calling window.parent

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: CRM iframe calling Azure Webapp page

    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.

  • Vijayaraghavan Profile Picture
    Vijayaraghavan 75 on at
    RE: CRM iframe calling Azure Webapp page

    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

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: CRM iframe calling Azure Webapp page

    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.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans