Replace unpkg with jsDelivr (#3291)

This commit is contained in:
Sukka 2025-03-16 01:32:14 +08:00 committed by GitHub
parent 6f5fd5d0b6
commit dcb7a593e5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View file

@ -101,7 +101,7 @@ if (IS_VESKTOP || !IS_VANILLA) {
// TODO: Restrict this to only imported packages with fixed version.
// Perhaps auto generate with esbuild
csp["script-src"] ??= [];
csp["script-src"].push("'unsafe-eval'", "https://unpkg.com", "https://cdnjs.cloudflare.com");
csp["script-src"].push("'unsafe-eval'", "https://cdn.jsdelivr.net", "https://cdnjs.cloudflare.com");
headers[header] = [stringifyPolicy(csp)];
}
};