fix: allow com with huggingface (#1966)
Browse files
src/routes/api/fetch-url/+server.ts
CHANGED
|
@@ -17,7 +17,6 @@ function isValidUrl(urlString: string): boolean {
|
|
| 17 |
hostname === "localhost" ||
|
| 18 |
hostname.startsWith("127.") ||
|
| 19 |
hostname.startsWith("192.168.") ||
|
| 20 |
-
hostname.startsWith("10.") ||
|
| 21 |
hostname.startsWith("172.16.") ||
|
| 22 |
hostname === "[::1]" ||
|
| 23 |
hostname === "0.0.0.0"
|
|
|
|
| 17 |
hostname === "localhost" ||
|
| 18 |
hostname.startsWith("127.") ||
|
| 19 |
hostname.startsWith("192.168.") ||
|
|
|
|
| 20 |
hostname.startsWith("172.16.") ||
|
| 21 |
hostname === "[::1]" ||
|
| 22 |
hostname === "0.0.0.0"
|