I’m trying to serve a CSS file from my Gitea to load it as custom theme in some app. So I grabbed the raw version of the CSS file.
Problem is, the file is served as
Content-Type: text/plain and this trigger an exception in Firefox in my app because it expects
The resource from "https://domain.tld/gitea/Owner/Repo/raw/branch/master/default_style.css" was blocked due to MIME type mismatch (X-Content-Type-Options: nosniff).
Could Gitea handle this, and change the header according to the file extension ?
I use the Yunohost package, so Gitea is behind Nginx.