Add unpkg redirect back to URL redirect minimum

Due to CSP
This commit is contained in:
SukkaW
2026-01-03 14:59:47 +08:00
parent 0ae45f7f3c
commit 82e45e631e

View File

@@ -80,7 +80,8 @@ const REDIRECT_MIRROR_HEADER: Array<[from: string, to: string, canUboUriTransfor
['cdn.staticfile.net/', 'https://cdnjs.cloudflare.com/ajax/libs/', true], ['cdn.staticfile.net/', 'https://cdnjs.cloudflare.com/ajax/libs/', true],
['cdn.staticfile.org/', 'https://cdnjs.cloudflare.com/ajax/libs/', true], ['cdn.staticfile.org/', 'https://cdnjs.cloudflare.com/ajax/libs/', true],
// The UNPKG has not been actively maintained and is finally down (https://github.com/unpkg/unpkg/issues/412) // The UNPKG has not been actively maintained and is finally down (https://github.com/unpkg/unpkg/issues/412)
['unpkg.com/', 'https://cdn.jsdelivr.net/npm/', true] // Don't enable URL Redirect minimum, due to its popularity and thus CSP issues
['unpkg.com/', 'https://cdn.jsdelivr.net/npm/']
]; ];
const REDIRECT_MIRROR_307: Array<[from: string, to: string, canUboUriTransform?: boolean]> = [ const REDIRECT_MIRROR_307: Array<[from: string, to: string, canUboUriTransform?: boolean]> = [