[backend] Limit fetched JSON-LD context size to 1MB

This commit is contained in:
Laura Hausmann 2024-07-28 16:17:13 +02:00
parent 62d9c743a5
commit d9d6dc1b60
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -126,6 +126,7 @@ export class LdSignature {
headers: { headers: {
Accept: "application/ld+json, application/json", Accept: "application/ld+json, application/json",
}, },
size: 1024 * 1024, // 1MiB
// TODO // TODO
//timeout: this.loderTimeout, //timeout: this.loderTimeout,
agent: (u) => (u.protocol === "http:" ? httpAgent : httpsAgent), agent: (u) => (u.protocol === "http:" ? httpAgent : httpsAgent),