Add schema.org to connect-sources

This commit is contained in:
Pieter Vander Vennet 2024-02-29 16:50:43 +01:00
parent f89123d318
commit 49154e1809
2 changed files with 2 additions and 1 deletions

View file

@ -334,6 +334,7 @@ async function generateCsp(
}
}
hosts.add("http://www.schema.org") // We add schema.org as it must be http, not https
if (hosts.has("*")) {
throw "* is not allowed as connect-src"
}

View file

@ -1728,7 +1728,7 @@ export default class SpecialVisualizations {
doc: "Attempt to load ld+json from the specified URL. This can be in an embedded <script type='ld+json'>",
},
],
needsUrls: [Constants.linkedDataProxy],
needsUrls: [Constants.linkedDataProxy, "http://www.schema.org"],
constr(
state: SpecialVisualizationState,
tags: UIEventSource<Record<string, string>>,