Yesterday I signed up for obsidian Publish with the intention of using it to host and share my research notes. To save space, I’m linking alot to a sharepoint drive, including embedding Powerpoints in iframes. This works perfectly in Obsidian Desktop, but fails in Obsidian Publish.
Both the sharepoint site AND a random news website fails to load, once published.
Yeah unfortunately this is only possible if the target site you’ve embedded allows embedding.
In Obsidian, because we control the full browser, we’ve implemented measures to “bypass” these additional directives to prevent sites from being embedded. Since your site viewer’s browser does not have those bypasses and enforces proper browser security, they correctly block the embedding.
These kind of measures are typically added to prevent “clickjacking” whereby a malicious website embeds another website and put a transparent layer of controls on top of it to steal users passwords. I don’t think there’s a way to bypass that from your published site unfortunately.
Right. Thank you for the explanation.
Can’t complain about security
I managed to get a slight “work-around” going, specifically for Powerpoint Presentations, since they ARE allowed to be embedded, but only in presentation view.
So adding
&action=embedview
to the iframe link, allows me to preview the full presentation from within Obsidian, with videos etc. working. So definitly closer to what I hoped for.