element-hq / element-call

Group calls powered by Matrix
https://call.element.io
Apache License 2.0
554 stars 88 forks source link

Content-Type of non-HTML responses is "text/html" #2354

Open AndrewFerr opened 4 months ago

AndrewFerr commented 4 months ago

Steps to reproduce

  1. Open Element Call in a web browser & open a network log
  2. Filter out CSS, JS, fonts, images, etc, but not HTML
  3. Refresh the page

Outcome

What did you expect?

Only requests returning HTML should appear in the network log.

What happened instead?

JSON & png requests appear too, as they have response headers of Content-Type: text/html; charset=UTF-8.

Operating system

Fedora

Browser information

Firefox 125.0.2

URL for webapp

Commit b5d25f1f

Will you send logs?

No