diff --git a/libs/common/src/services/api.service.ts b/libs/common/src/services/api.service.ts index 4aceda36b5..5776348816 100644 --- a/libs/common/src/services/api.service.ts +++ b/libs/common/src/services/api.service.ts @@ -1212,8 +1212,10 @@ export class ApiService implements ApiServiceAbstraction { } async getKnownDevice(email: string, deviceIdentifier: string): Promise { - const path = `/devices/knowndevice/${email}/${deviceIdentifier}`; - const r = await this.send("GET", path, null, false, true); + const r = await this.send("GET", "/devices/knowndevice", null, false, true, null, (headers) => { + headers.set("X-Device-Identifier", deviceIdentifier); + headers.set("X-Request-Email", Utils.fromUtf8ToUrlB64(email)); + }); return r as boolean; }