Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing icons in new tabs #59

Closed
KP64 opened this issue Dec 29, 2024 · 2 comments
Closed

Missing icons in new tabs #59

KP64 opened this issue Dec 29, 2024 · 2 comments

Comments

@KP64
Copy link
Contributor

KP64 commented Dec 29, 2024

When viewing my Topology in the README of my Repo, the icons are included.
Opening the topology in a new tab to enlarge it however results in missing icons as shown here.

What I've already tried:

  • Multiple browsers (even the ones on my phone), to make sure that my browser settings aren't messing something up.
@oddlama
Copy link
Owner

oddlama commented Jan 3, 2025

This is because you are viewing the png via raw.githubusercontent.com instead of github.com. It ships a CSP header that disallows loading inline resources, so the images and fonts cannot be loaded. github.com allows this kind of content, so it will display fine from there. If you open your browsers console you will probably see errors like this one:

Content-Security-Policy: The page’s settings blocked the loading of a resource (img-src) at data:image/svg+xml;utf8,%3Csvg tw=%22w-1… because it violates the following directive: “default-src 'none'”

Since the CSP is specified by github, you cannot do anything about it except hosting it somewhere else.

@KP64
Copy link
Contributor Author

KP64 commented Jan 3, 2025

I already thought it had to do with githubusercontent.
Thanks for the confirmation :D

@KP64 KP64 closed this as completed Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants