SharePoint / sp-dev-docs

SharePoint & Viva Connections Developer Documentation
https://docs.microsoft.com/en-us/sharepoint/dev/
Creative Commons Attribution 4.0 International
1.24k stars 1k forks source link

List Formatting: Question about embeddable sites using the `embed` action #9766

Open tecchan1107 opened 2 months ago

tecchan1107 commented 2 months ago

What type of issue is this?

Question

What SharePoint development model, framework, SDK or API is this about?

Declarative list formatting

Target SharePoint environment

SharePoint Online

What browser(s) / client(s) have you tested

Additional environment details

No response

Issue description

When using the embed action, you can embed and display a site specified in the src attribute's URL.

image

However, there are sites that can and cannot be embedded. For example, you can embed https://www.youtube.com/embed/pwnW68PN2sU?si=rzigqVDQSCHTi0pB, but you cannot embed https://www.youtube.com/watch?v=pwnW68PN2sU.

image

image

Is this determination based on the value of the X-Frame-Options property of the site specified in the src attribute?

image

XueSheng-GIT commented 1 month ago

@tecchan1107 did add those sites you want to add to the "white list"? https://go.microsoft.com/fwlink/p/?linkid=2258033

tecchan1107 commented 1 month ago

did add those sites you want to add to the "white list"?

Yes, I did! However, some sites cannot display embedded. (I assume that these sites that cannot be embedded are those that do not have the X-Frame-Options property set. But this is only my guess. I would like to know this exact information if possible!).