nkanaev / yarr

yet another rss reader
MIT License
3.02k stars 225 forks source link

Problems serving under path with `tailscale serve` #213

Closed asymmetric closed 1 month ago

asymmetric commented 1 month ago

I want to run yarr behind tailscale serve.

It works well if I serve it at the root (e.g. machine.pango-lin.ts.net), but if I run tailscale serve --set-path foo 7070 (i.e try tro serve it at machine.pango-lin.ts.net/foo, then this happens:

The resource from “https://machine.pango-lin.ts.net/static/javascripts/key.js” was blocked due to MIME type (“text/plain”) mismatch (X-Content-Type-Options: nosniff).

(same for all other JS and CSS files).

Looking at the response headers, the difference between running at / vs at /foo is, that for the latter, the content type is wrong, and a new header is added:

Any idea where this behavior is coming from?

The version I'm running is the latest stable, v2.4.