Khadim Ali on Fri, 15 Sep 2017 17:53:04
I remember I have read that we can display external websites on a CRM form using an IFrame.
So I have just simply added an IFrame to the form, set the URL to https://www.google.com (in design mode), remove the cross frame scripting security check. But it is not showing google page in an IFrame.
Error message in IE:
This content cannot be displayed in a frame. To help protect the security of information you enter into this website, the publisher of this content does not allow it to be displayed in a frame.
Error message in Chrome:
Refused to display '<URL>' in a frame because it set 'X-Frame-Options' to 'sameorigin'.
I also tried adding https://www.google.com and https://www.google.com.pk in the trusted sites zone.
Ultimately, I need to show a sharepoint document (image) on CRM form.
Andrii Butenko on Fri, 15 Sep 2017 18:38:44
Have you tried to point your IFrame to sharepoint and not google? Google website just doesn't allow to embed itself to internal websites.
Khadim Ali on Fri, 15 Sep 2017 18:45:49
Yes, at first I was trying with SharePoint itself. But the outcome was same.
Khadim Ali on Fri, 15 Sep 2017 19:09:27
I tried with LinkedIn and it failed. Then I tried with a local newspaper website and it PASSED :).
So apparenlty, it seems any security check or so from SharePoint website side?
Andrii Butenko on Fri, 15 Sep 2017 19:18:48
If you're using Sharepoint Online I'm afraid you will no be able to do that but if you're onprem you will have to make following modification - https://social.msdn.microsoft.com/Forums/office/en-US/27cbd974-d19d-4c4c-8e55-e73810452773/how-to-embed-sharepoint-site-on-simple-html-page-iframe?forum=sharepointdevelopment
Dynamics CRM/Business Solutions MVP
Read My blog
Khadim Ali on Fri, 15 Sep 2017 19:39:19
Do we have any other way to surface a SharePoint hosted image document on a D365/CRM form?
Andrii Butenko on Fri, 15 Sep 2017 19:48:19
I don't see any easy way then develop that functionality from a scratch.