refactor(fetcher): use origin for the referrer
This commit is contained in:
parent
7d465c0229
commit
938f6cb2c3
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue