action #176913
Updated by livdywan 2 months ago
# Observation
https://suse.slack.com/archives/C02CANHLANP/p1739184023726149 - Petr and Oli complained about their browser downloading plain text files instead of displaying them. We should help their browsers to make the right decision for openQA assets.
In Chrome(ium) this seems to happen because of [MIME sniffing](https://developer.mozilla.org/en-US/docs/Web/HTTP/MIME_types#mime_sniffing). https://stackoverflow.com/a/9660578 describes possible solutions. I think the cleanest and easiest would be `X-Content-Type-Options: nosniff` on our webserver config.
## Acceptance criteria
* **AC1**: Chromium-based browsers don't prompt for downloading plain text files (and just show them)
# Suggestions
* Add `X-Content-Type-Options: nosniff` to the appropriate nginx config
* Consider up-streaming it if useful for others
* Change openQA to only write valid data into logfiles
* Is this really what we want? Is it still a "logfile" then if we manipulate it?