fsplayer icon indicating copy to clipboard operation
fsplayer copied to clipboard

Cannot set "Origin" header for m3u8 stream

Open mehdi7374 opened this issue 3 months ago • 0 comments

Hi,

I'm using FSPlayer to play an m3u8 stream in iOS. I can successfully set custom "Referer" and "User-Agent" headers using:

[options setFormatOptionValue:@"Referer: https://example.com\r\nUser-Agent: MyApp" forKey:@"headers"];

However, I also need to set the "Origin" header, but it seems not to be applied.

I've tried setting:

[options setFormatOptionValue:@"Referer: https://example.com\r\nOrigin: https://example.com\r\nUser-Agent: MyApp" forKey:@"headers"];

But "Origin" is still ignored.

Environment:

iOS version: 17

Playback: m3u8/HLS

How can I correctly add a custom "Origin" header so that it is applied?

Thank you.

mehdi7374 avatar Oct 19 '25 21:10 mehdi7374