Display outlook mailbox in iFrame on SharePoint modern error login.microsoftonline.com refused

New Contributor

I want to display user emails in iframe, I am using below code on the Embed web part on SharePoint modern site

<iframe src="https://outlook.office.com/mail/inbox" width="570" height="315"></iframe>

It displays the error login.microsoftonline.com refused to connect.

My settings on SharePoint HTML Field Security is Allow contributors to insert iframes from any domain.

The iFrame works for all sites that does not require the user to login but it is not working on all sites that authenticate the user.


is there a way to display outlook emails in iframe?

2 Replies
That's by design afaik, no way to embed/iframe it.