Skip to content

Pass HTTP Headers on Streams #350

@qwertyuiop8899

Description

@qwertyuiop8899

Hi All,
I'm trying to use http headers correctly but it seems to not work, i followed. https://github.com/Stremio/stremio-addon-sdk/blob/master/docs/api/responses/stream.md and the issue opened in the past #55

but it still not working.

[DEBUG-GD] Stream: {
  title: '[🌐Gd1] CANALE [ITA]',
  url: 'https://ava.test.com/wind/premium881/mono.m3u8...',
  hasBehaviorHints: true,
  behaviorHints: { notWebReady: true, proxyHeaders: { request: [Object] } },
  allKeys: [ 'name', 'title', 'url', 'behaviorHints' ]
}
[DEBUG-GD] proxyHeaders completo: {
  "request": {
    "Referer": "https://en.test.top/",
    "Origin": "https://en.test.top",
    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36"
  }
}

the same link with the MediaflowProxy header wrap is working correctly.

https://linkMFP/proxy/hls/manifest.m3u8?api_password=mfp&d=https%3A%2F%2Fava.test.com%2Fwind%2Fpremium881%2Fmono.m3u8&h_Referer=https%3A%2F%2Fen.test.top%2F&h_Origin=https%3A%2F%2Fen.test.top&h_User-Agent=Mozilla%2F5.0%20(Windows%20NT%2010.0%3B%20Win64%3B%20x64)%20AppleWebKit%2F537.36%20(KHTML%2C%20like%20Gecko)%20Chrome%2F135.0.0.0%20Safari%2F537.36

The links are fake, it's only an example. request: [Object] is a link to

  "request": {
    "Referer": "https://en.test.top/",
    "Origin": "https://en.test.top",
    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36"
  }
}

any hint?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions