add comment thingie

This commit is contained in:
Vendicated 2025-04-08 02:10:34 +02:00
parent ffd1bd2d6a
commit eea3a443fa
No known key found for this signature in database
GPG key ID: D66986BAF75ECF18

View file

@ -14,6 +14,9 @@ const CssSrc = ["style-src", "font-src"];
const MediaAndCssSrc = [...MediaSrc, ...CssSrc];
const MediaScriptsAndCssSrc = [...MediaAndCssSrc, "script-src", "worker-src"];
// Plugins can whitelist their own domains by importing this object in their native.ts
// script and just adding to it
export const CspPolicies: PolicyMap = {
"*.github.io": MediaAndCssSrc, // github pages, used by most themes
"raw.githubusercontent.com": MediaAndCssSrc, // github raw, used by some themes