use requiredInputs
https://github.com/misskey-dev/misskey/pull/13464#discussion_r1509964359
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user