YunoHost-Apps / jitsi_ynh

Video conference for YunoHost
https://jitsi.org/
Apache License 2.0
21 stars 20 forks source link

wasm files are not loaded on Firefox due to wrong Content-Type #104

Open jpastuszek opened 1 year ago

jpastuszek commented 1 year ago

Describe the bug

On Firefox I get an error in JS console:

wasm streaming compile failed: TypeError: WebAssembly: Response has unsupported MIME type 'application/octet-stream' expected 'application/wasm'

This is in relation for request to /libs/olm.wasm.

With out this WASM compiled the performance is so low that video does not work and client gets "Connection: poor" even thought there is plenty of bandwidth available.

Context

Steps to reproduce

  1. Go to Jitsi Meet
  2. Start a conference
  3. Check JS console output for
wasm streaming compile failed: TypeError: WebAssembly: Response has unsupported MIME type 'application/octet-stream' expected 'application/wasm'

OR

curl https://example.com/libs/olm.wasm -v

If you get this there is a problem:

< content-type: application/octet-stream

Expected behavior

No error, video working and curl request giving:

< content-type: application/wasm
yalh76 commented 1 year ago

seems that nginx configuration is missing:

https://github.com/jitsi/jitsi-meet/blob/5e90e725626bf8a63c227897b9ddb0194f9b8651/doc/debian/jitsi-meet/jitsi-meet.example#L3-L7