Roam-Research / issues

Roam Research - A note-taking tool for networked thought.
https://roamresearch.com/
304 stars 7 forks source link

Embed Github Gist #337

Open pieterdv opened 4 years ago

pieterdv commented 4 years ago

I've tried to embed a Github Gist into a page, but the Gist is not showing

I've tried with the following steps:

:hiccup [:iframe {:src "<script src=\"https://gist.github.com/pieterdv/82773fbe036719479d76ab0a4985dc3b.js">\"}]

then I get the following:

image

and

:hiccup [:iframe {:src "https://gist.github.com/pieterdv/82773fbe036719479d76ab0a4985dc3b"}]

image

with this message in the dev console:

A cookie associated with a cross-site resource at http://github.com/ was set without the SameSite attribute. A future release of Microsoft Edge will only deliver cookies with cross-site requests if they are set with SameSite=None and Secure. You can review cookies in developer tools under Application>Storage>Cookies and see more details at https://www.chromestatus.com/feature/5088147346030592 and https://www.chromestatus.com/feature/5633521622188032.

System Information:

panterarocks49 commented 4 years ago

Github doesn't allow embedding a gist in an iframe, there isn't anything we can do about this. You might be able to use [[roam/js]] to embed it, but I played around with it and can't figure it out.