mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-28 17:41:54 +08:00
Add unpkg redirect back to URL redirect minimum
Due to CSP
This commit is contained in:
@@ -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.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)
|
||||
['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]> = [
|
||||
|
||||
Reference in New Issue
Block a user