Skip to content

Commit e9348b8

Browse files
committed
Update trusted fetch domain list
Removed regex and added BitBucket Pages
1 parent 72a4f92 commit e9348b8

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/containers/tw-security-manager.jsx

+8-5
Original file line numberDiff line numberDiff line change
@@ -41,20 +41,23 @@ const isAlwaysTrustedForFetching = parsed => (
4141

4242
// Any TurboWarp service such as trampoline
4343
parsed.origin === 'https://turbowarp.org' ||
44-
/\.turbowarp\.org$/.test(parsed.origin) ||
45-
/\.turbowarp\.xyz$/.test(parsed.origin) ||
44+
parsed.origin.endsWith('.turbowarp.org') ||
45+
parsed.origin.endsWith('.turbowarp.xyz') ||
4646

4747
// GitHub
4848
parsed.origin === 'https://raw.githubusercontent.com' ||
4949
parsed.origin === 'https://api.github.com' ||
50-
/\.github\.io$/.test(parsed.origin) ||
50+
parsed.origin.endsWith('.github.io') ||
5151

5252
// GitLab
5353
parsed.origin === 'https://gitlab.com' ||
54-
/\.gitlab\.io$/.test(parsed.origin) ||
54+
parsed.origin.endsWith('.gitlab.io') ||
55+
56+
// BitBucket
57+
parsed.origin.endsWith('.bitbucket.io') ||
5558

5659
// Itch
57-
/\.itch\.io$/ ||
60+
parsed.origin.endsWith('.itch.io') ||
5861

5962
// GameJolt
6063
parsed.origin === 'https://api.gamejolt.com' ||

0 commit comments

Comments
 (0)