Skip to content

Commit 92c00b9

Browse files
committed
fix: add more trusted domains
1 parent f799a04 commit 92c00b9

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

server/utils/image-proxy.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,15 @@ const TRUSTED_IMAGE_DOMAINS = [
4141
'repository-images.githubusercontent.com',
4242
'github.githubassets.com',
4343
'objects.githubusercontent.com',
44+
'avatars2.githubusercontent.com',
45+
'cloud.githubusercontent.com',
4446

4547
// GitLab
4648
'gitlab.com',
4749

4850
// CDNs commonly used in READMEs
4951
'cdn.jsdelivr.net',
52+
'data.jsdelivr.com',
5053
'unpkg.com',
5154

5255
// Well-known badge/shield services
@@ -63,6 +66,15 @@ const TRUSTED_IMAGE_DOMAINS = [
6366
'api.codeclimate.com',
6467
'bundlephobia.com',
6568
'packagephobia.com',
69+
'deepwiki.com',
70+
'saucelabs.github.io',
71+
'opencollective.com',
72+
'circleci.com',
73+
'www.codetriage.com',
74+
'badges.gitter.im',
75+
'nodei.co',
76+
'travis-ci.org',
77+
'secure.travis-ci.org',
6678
]
6779

6880
/**

0 commit comments

Comments
 (0)