use requiredInputs
https://github.com/misskey-dev/misskey/pull/13464#discussion_r1509964359
This commit is contained in:
parent
30820d9e0a
commit
1357b076d0
|
@ -110,7 +110,11 @@ export class ActivityPubServerService {
|
|||
}
|
||||
|
||||
try {
|
||||
signature = parseRequestSignature(request.raw);
|
||||
signature = parseRequestSignature(request.raw, {
|
||||
requiredInputs: {
|
||||
draft: ['(request-target)', 'digest', 'host', 'date'],
|
||||
},
|
||||
});
|
||||
} catch (e) {
|
||||
reply.code(401);
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue