mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-06 03:50:26 +02:00
Increase clock skew for HTTP signatures
This commit is contained in:
parent
4ce7eb71ba
commit
f67d757452
2 changed files with 3 additions and 2 deletions
|
@ -55,7 +55,7 @@ async function checkHttpSignature (req: Request, res: Response) {
|
|||
const sig = req.headers[HTTP_SIGNATURE.HEADER_NAME] as string
|
||||
if (sig && sig.startsWith('Signature ') === false) req.headers[HTTP_SIGNATURE.HEADER_NAME] = 'Signature ' + sig
|
||||
|
||||
const parsed = parseHTTPSignature(req)
|
||||
const parsed = parseHTTPSignature(req, HTTP_SIGNATURE.CLOCK_SKEW_SECONDS)
|
||||
|
||||
const keyId = parsed.keyId
|
||||
if (!keyId) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue