Skip to content

Commit

Permalink
Always set base to null; do not allow relative URLs or terms.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlongley committed Aug 23, 2022
1 parent d17c390 commit ab5ba46
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/suites/LinkedDataSignature.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,12 @@ module.exports = class LinkedDataSignature extends LinkedDataProof {
}
return jsonld.canonize(input, {
algorithm: 'URDNA2015',
// do not resolve any relative URLs or terms, throw errors instead
base: null,
format: 'application/n-quads',
documentLoader,
// throw errors if any values would be dropped due to missing
// definitions or relative URLs
safe: true,
skipExpansion,
useNative: this.useNativeCanonize
Expand Down

0 comments on commit ab5ba46

Please sign in to comment.