Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] not working with tubearchivist #314

Open
PawsFunctions opened this issue Dec 31, 2024 · 1 comment
Open

[BUG] not working with tubearchivist #314

PawsFunctions opened this issue Dec 31, 2024 · 1 comment

Comments

@PawsFunctions
Copy link

PawsFunctions commented Dec 31, 2024

Describe the bug
Not working on self-hosted tubearchivist
https://github.com/tubearchivist/tubearchivist

image

Version
FastStream v1.3.38

Platform
Firefox

Steps to Reproduce
open any video on self-hosted tubearchivist

Problem
The csrftoken cookie and the session are not attached to the request to the server, which causes the server to return a 403 Forbidden error.

Header sent with request

GET /media/UCkib-**-***/_DF****Tses.mp4 HTTP/1.1
Host: tubearchivist.mydomain.com
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:133.0) Gecko/20100101 Firefox/133.0
Accept: */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, identity
Range: bytes=0-999999
DNT: 1
Sec-GPC: 1
Connection: keep-alive
referer: http://tubearchivist.mydomain.com/video/_***es/
origin: http://tubearchivist.mydomain.com
Pragma: no-cache
Cache-Control: no-cache

opening file url directly did worked with player, header sent with request

GET /media/UCkib-***-***/_DF****ses.mp4 HTTP/1.1
Host: tubearchivist.mydomain.com
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:133.0) Gecko/20100101 Firefox/133.0
Accept: */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, identity
Range: bytes=44000000-44999999
DNT: 1
Sec-GPC: 1
Connection: keep-alive
Cookie: csrftoken=UC****ABO; sessionid=k****tk
Pragma: no-cache
Cache-Control: no-cache

image

@Andrews54757
Copy link
Owner

I have mixed feelings about attaching cookies to the headers due to privacy concerns. If you really need this, try removing the following line to remove cookie from the header blacklist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants