mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 10:19:35 +02:00
Add SSRF protection
This commit is contained in:
parent
af9f20d60c
commit
d24d221550
21 changed files with 160 additions and 43 deletions
|
@ -39,7 +39,7 @@ export class AutoFollowIndexInstances extends AbstractScheduler {
|
|||
|
||||
this.lastCheck = new Date()
|
||||
|
||||
const { body } = await doJSONRequest<any>(indexUrl, { searchParams })
|
||||
const { body } = await doJSONRequest<any>(indexUrl, { searchParams, preventSSRF: false })
|
||||
if (!body.data || Array.isArray(body.data) === false) {
|
||||
logger.error('Cannot auto follow instances of index %s. Please check the auto follow URL.', indexUrl, { body })
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue