web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Microsoft Dynamics CRM Dashboards not permitting me to embed them in iFrame on my website

(1) ShareShare
ReportReport
Posted on by

Hi,

I have a simple HTML page which have a simple iFrame tag as below:

<iframe src="http://<ip>:<port>/CRMDev/workplace/home_dashboards.aspx" sandbox="allow-same-origin allow-scripts allow-forms allow-popups allow-pointer-lock allow-top-navigation" width="100%" height="100%" ></iframe>

I am trying to load system dashboard of CRM in an iFrame on my application. I have tried all the following links in src of iFrame:

Online:
https://<crmip>:<port>/workplace/home_dashboards.aspx

https://<crmip>:<port>/dashboards/dashboard.aspx?dashboardId=2701DE60-8F2A-48A4-8262-4A35CA7441FA&dashboardType=1030&pagemode=iframe

https://<crmip>:<port>/workplace/home_dashboards.aspx?dashboardId=2701DE60-8F2A-48A4-8262-4A35CA7441FA

On-Premises:

http://<crmip>:<port>/workplace/home_dashboards.aspx

http://<crmip>:<port>/dashboards/dashboard.aspx?dashboardId=2701DE60-8F2A-48A4-8262-4A35CA7441FA&dashboardType=1030&pagemode=iframe

http://<crmip>:<port>/workplace/home_dashboards.aspx?dashboardId=2701DE60-8F2A-48A4-8262-4A35CA7441FA

When embeding any of the above links in an iFrame I got the following:

On-Premises CRM show a login pop-up of Windows Authentication, after entering the correct credentials it shows 'Access is Denied' AND 'Permission Denied' on the console window of browser

Online CRM shows in iFrame that 'This content cannot be displayed in a frame'

When I access all the above URLs directly by typing them on the browser address bar it works.

Does MS CRM doesn't allow us to embed the dashboards in an iFrame? 

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Rajkumar Rajaraman Profile Picture
    on at
  • Community Member Profile Picture
    on at

    HI Badar

    Thanks for your post

    can you add me on skype :- mahesh.variance

    If possible from your side so we can discuss.

    Thanks

  • Community Member Profile Picture
    on at

    Thanks for your reply Rajkumar Rajaraman

    But i don't want to display a report in a dashboard. I want to embed my existing dashboard URL to my web application using iFrame (or something better)

  • Suggested answer
    Dynamics_Alok Profile Picture
    1,746 on at

    If you want to access CRM page ,it is required to Pass credentials ..one one you can try is to go to Internet Setting -> Security -> Internet -> Custom Level and select Authentication mode Automatic .It would work if you are in the same premise of CRM.

  • Community Member Profile Picture
    on at

    Thanks Alok Srivastav for your reply.

    I am already getting a pop-up and I don't have any issue with the windows authentication pop-up.

    I have tried your thing but still it doesn't work. Automatic Authentication mode still not allowing me to access dashboard URL using an iframe in my application

  • Suggested answer
    Dan Hesketh Profile Picture
    on at

    Hi mate,

    Is your host Web Application, where the iFrame is hosted, using SSL/HTTPS?

    I know that when interacting with CRM Online both sides must be secure HTTPS.

    Not sure if that's at all on the right track, but hope you can figure out a solution.

    Cheers,

    Dan

  • ashlega Profile Picture
    34,477 on at

    For CRM online, at least, you can't embed CRM dashboard into an iframe on another site - you'll see exactly this error:

    This content cannot be displayed in a frame

    For the on-prem, it might work, but you may have to modify some files on the server to modify X-Frame-Options as described here:

    stackoverflow.com/.../iframe-this-content-cannot-be-displayed-in-a-frame

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans