Skip to content

how to present an interactive SVG? #42349

Closed Answered by yoannchaudet
skierpage asked this question in Pages
Discussion options

You must be logged in to vote

Hello!

GitHub Pages is your best bet here.

As to what is going on, SVG are sanitized before being rendered on the GitHub.com domain. This is for security reasons and also why Pages sites are hosted on a different domain by default (github.io). Allowing arbitrary client side code to run on a given domain is a major security risk. An ill intended person could try to exfiltrate your session token and perform operations on your behalf. You can learn more about that in the actual post we made many years ago when moving Pages to github.io!

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by skierpage
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Pages Host a static website, right from your repo Question inactive This discussion has been automatically marked as inactive. This was formerly labeled stale.
2 participants