Skip to content

Add cookies / arbitarry http headers via url? #62

@powellnorma

Description

@powellnorma

I know it's possible to set the referer by using this format:

const hls_proxy_url  = `${proxy_url}/${ btoa(`${video_url}|${referer_url}`) }${file_extension}`

But in my case, I would need to add some "dynamically generated" cookies via the M3U8 URL - is that possible?

I am currently starting the server via hlsd.

If not, what about supporting using this format?

const hls_proxy_url  = `${proxy_url}/${ btoa(`${video_url}|{arbitraryJsonAttributes: 123}`) }${file_extension}`

It could be backwards compatible be checking if the first character after | is an {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions