YunoHost-Apps / shiori_ynh

Shiori package for YunoHost
GNU General Public License v3.0
3 stars 3 forks source link

Resources not loaded due to wrong mime type #46

Open andreatitolo opened 2 months ago

andreatitolo commented 2 months ago

Describe the bug

Hi! first of all thanks for this app :)

When opening the app at "https://mydomain/shiori", a blank page appear with the black sidebar and the logout button + the yunohost admin overlay, but nothing else. A bunch of console errors mention a MIME type (text/html) mismatch (X-Content-Type-Options: nosniff). Screenshots attached below.

Context

Steps to reproduce

Expected behavior

I think a login screen is supposed to appear?

Logs

I don't know if there are any logs I can share here, but I'll attach screenshots.

shiori_blank_homepage

shiori_console_log

jingyuyan19 commented 2 months ago

same issue.

dad-sweater commented 1 month ago

Same here. I've installed it on a different subdomain by itself too and it's the same blank screen with a functionless logout button

rndmh3ro commented 3 weeks ago

The problem is not the mime-type issue, but a problem in shiori itself. There are bugs when handling subpath-domains such as /shiori:

These are fixed in the main-branch of shiori (I tested it myself by building shiori and replacing the binary), the relevant fix probably being: https://github.com/go-shiori/shiori/pull/971

I asked for a new release here: https://github.com/go-shiori/shiori/issues/988