Public share: video playback returns 403 for anonymous visitors (download works)
Public share: video playback returns 403 for anonymous visitors (download works)
Version: v2.0.9-beta (also reproduced on earlier 2.0.x-beta) OS: Windows, binary, ffmpeg at C:\ffmpeg\bin
Description Videos in public shares no longer play for anonymous visitors. The stream request returns 403 Forbidden, while downloading the same file from the same share works. When the visitor is logged in, the video plays normally.
Steps to reproduce
Create a new share for a single video file (source root, no password, no download limit, download enabled). Open the share link in a private window, not logged in. Click play.
Actual
GET /public/api/users?username=self → 401 (expected) GET /public/api/media/stream?file=%2F&hash=&viewToken=&sessionId= → 403 Forbidden plyrViewer: NotSupportedError: The element has no supported sources.
Expected Video streams for anonymous visitors, same as download.
Notes
Download from the share works anonymously. Streaming works when logged in. Possibly related to the v2.0.5 change "Anonymous share visitors no longer receive file content when download limits or viewer restrictions prevent access" (#2912).
Source config
yaml sources:
- path: "F:\FTP" name: "Across Files" config: denyByDefault: false private: false defaultPermissions: { view: true, download: true }
Source: gtsteffaniak/filebrowser