Forum Discussion
Divyang Patel
Jan 11, 2018Copper Contributor
Document Sharing on iframe on different domain
Hi All,
I've few documents in Document library on SharePoint Online, for which I've created Guest URLs and adding the URL on iframe/embed url on a site with different domain but either I'm gett...
Paul de Jong
Jan 12, 2018Iron Contributor
I do not expect this to work. See e.g. https://en.wikipedia.org/wiki/Same-origin_policy
Having this functionality poses a major security risk. For example, a malicious site could use an iframe with width 0 and height 0 to access your gmail account and re-use authentication existing cookies.
This is not a SharePoint problem.
I would open the page on the different domain using Chrome and then open the developer console (F12). It should show a security error.
Paul
- Divyang PatelJan 15, 2018Copper Contributor
Hi Paul de Jong
Thanks a lot for the response, However the site where I'm going to use iframe is more of a secure site. We're going to use this on Student Portal, where users have to login in access the data.
Thanks