18
Does my Lemmy instance support video streaming? tchncs shows ❌ Error: Failed to fetch
(aeharding.github.io)
Your friendly https://tchncs.de/ community! Discuss whats happening in the tchncs world and/or just use it as a community forum.
German and english allowed.
If you are looking for a way to support tchncs, please check out https://tchncs.de/donate
Seems to be a CORS issue. A GET request to
https://discuss.tchncs.de/pictrs/image/2254acd7-9ce1-4b07-b334-15631f2847e2.png
is correctly responded to with a single Allow-Origin header:However, the problem occurs when a browser makes that request. It adds an Origin header (For example,
Origin: https://aeharding.github.io/
in this case), and then the server responds with two Allow-Origin headers, which is invalid:(Note the different capitalization.)
Ignoring that, it also seems that the server does not support the Range header. Requesting the same image with the header:
returns the full image instead of the requested partial content. This effectively means that while video/audio files hosted on this instance will play, features like fast forwarding won’t work properly. This is something @[email protected] will probably want to take a look at some point.