refactor(fetcher): use origin for the referrer

This commit is contained in:
WebStreamr 2025-05-16 12:27:48 +00:00
parent 7d465c0229
commit 938f6cb2c3
No known key found for this signature in database

View file

@ -39,7 +39,7 @@ export class Fetcher {
headers: {
'User-Agent': this.createUserAgentForIp(ctx.ip),
'Forwarded': `for=${ctx.ip}`,
'Referer': `${url.protocol}//${url.host}`,
'Referer': `${url.origin}`,
'X-Forwarded-For': ctx.ip,
'X-Forwarded-Proto': url.protocol.slice(0, -1),
'X-Real-IP': ctx.ip,