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

%3CLINGO-SUB%20id%3D%22lingo-sub-2361134%22%20slang%3D%22en-US%22%3ERe%3A%20Display%20outlook%20mailbox%20in%20iFrame%20on%20SharePoint%20modern%20error%20login.microsoftonline.com%20refused%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2361134%22%20slang%3D%22en-US%22%3EThat's%20by%20design%20afaik%2C%20no%20way%20to%20embed%2Fiframe%20it.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2360332%22%20slang%3D%22en-US%22%3EDisplay%20outlook%20mailbox%20in%20iFrame%20on%20SharePoint%20modern%20error%20login.microsoftonline.com%20refused%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2360332%22%20slang%3D%22en-US%22%3E%3CDIV%20class%3D%22votecell%20post-layout--left%22%3E%3CDIV%20class%3D%22js-voting-container%20grid%20jc-center%20fd-column%20ai-stretch%20gs4%20fc-black-200%22%3E%3CDIV%20class%3D%22js-vote-count%20grid--cell%20fc-black-500%20fs-title%20grid%20fd-column%20ai-center%22%3E0%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%20class%3D%22postcell%20post-layout--right%22%3E%3CDIV%20class%3D%22s-prose%20js-post-body%22%3E%3CP%3EI%20want%20to%20display%20user%20emails%20in%20iframe%2C%20I%20am%20using%20below%20code%20on%20the%20Embed%20web%20part%20on%20SharePoint%20modern%20site%3C%2FP%3E%3CPRE%3E%3CSPAN%20class%3D%22hljs-tag%22%3E%26lt%3B%3CSPAN%20class%3D%22hljs-name%22%3Eiframe%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-attr%22%3Esrc%3C%2FSPAN%3E%3D%3CSPAN%20class%3D%22hljs-string%22%3E%22https%3A%2F%2Foutlook.office.com%2Fmail%2Finbox%22%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-attr%22%3Ewidth%3C%2FSPAN%3E%3D%3CSPAN%20class%3D%22hljs-string%22%3E%22570%22%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22hljs-attr%22%3Eheight%3C%2FSPAN%3E%3D%3CSPAN%20class%3D%22hljs-string%22%3E%22315%22%3C%2FSPAN%3E%26gt%3B%3C%2FSPAN%3E%3CSPAN%20class%3D%22hljs-tag%22%3Eiframe%3C%2FSPAN%3E%26gt%3B%0A%3C%2FPRE%3E%3CP%3EIt%20displays%20the%20error%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3Elogin.microsoftonline.com%20refused%20to%20connect%3C%2FSTRONG%3E.%3C%2FP%3E%3CP%3EMy%20settings%20on%20SharePoint%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3EHTML%20Field%20Security%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eis%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3EAllow%20contributors%20to%20insert%20iframes%20from%20any%20domain%3C%2FSTRONG%3E.%3C%2FP%3E%3CP%3EThe%20iFrame%20works%20for%20all%20sites%20that%20does%20not%20require%20the%20user%20to%20login%20but%20it%20is%20not%20working%20on%20all%20sites%20that%20authenticate%20the%20user.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eis%20there%20a%20way%20to%20display%20outlook%20emails%20in%20iframe%3F%3C%2FP%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2360332%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
New Contributor
0

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.