fix (backend): reject anonymous objects
This commit is contained in:
parent
2e51a33ae5
commit
e753b313da
1 changed files with 4 additions and 1 deletions
|
@ -133,7 +133,10 @@ export default class Resolver {
|
|||
throw new Error("invalid response");
|
||||
}
|
||||
|
||||
if (object.id == null) return object;
|
||||
if (object.id == null) {
|
||||
throw new Error("Object has no ID");
|
||||
}
|
||||
|
||||
if (finalUrl === object.id) return object;
|
||||
|
||||
if (new URL(finalUrl).host !== new URL(object.id).host) {
|
||||
|
|
Loading…
Reference in a new issue