NuGetGallery icon indicating copy to clipboard operation
NuGetGallery copied to clipboard

[Feature]: Add more allowed images domains for Github

Open Grille opened this issue 9 months ago • 8 comments

Related Problem

I tried to use images I uploaded on a GitHub wiki page in my readme, but the URLs seem not to be accepted.

The one that is already in the alowed domain list that is nearest to what I need is : https://user-images.githubusercontent.com/...image

But when I drop the image in the wiki, the link I get at first is: https://github.com/User/Repo/assets/...image

Or if I get the image address again later: https://private-user-images.githubusercontent.com/...image

Both versions seem to be valid

The Elevator Pitch

Does it make sense to add the following domains to the allowed domain list?

  1. Add https://github.com/...image
    (it sems to be ok for https://gitlab.com)
  2. Add https://private-user-images.githubusercontent.com/...image (since it sems to be the default way GitHub now stores these images internally??)

Additional Context and Details

A bit off topic: I would also be happy if someone could point me to how I upload an image on GitHub as non private? I sadly found nothing about this.

Grille avatar May 26 '24 20:05 Grille