Browse Source

Add `unpkg` redirect back to URL redirect minimum

Due to CSP
SukkaW 2 months ago
parent
commit
82e45e631e
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Build/build-sgmodule-redirect.ts

+ 2 - 1
Build/build-sgmodule-redirect.ts

@@ -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]> = [