Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Resources not loaded due to wrong mime type #46

Open
andreatitolo opened this issue Aug 11, 2024 · 3 comments
Open

Resources not loaded due to wrong mime type #46

andreatitolo opened this issue Aug 11, 2024 · 3 comments

Comments

@andreatitolo
Copy link

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

  • Hardware: Raspberry Pi at home
  • YunoHost version: 11.2.27
  • I have access to my server: Through SSH | through the webadmin
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: yes
    • If yes, please explain: server is behind tailscale vpn, app is installed on the same domain as another app, as this is the only domain accessible through https thanks to tailscale magic dns
  • Using, or trying to install package version/branch: 1.7.0~ynh2

Steps to reproduce

  • If the error occurs in your browser, explain what you did:
    1. Go to the app url
    2. Blank page appear with black sidebar, but nothing else happens
    3. Open console
    4. See errors in the last screenshot

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
Copy link

same issue.

@ivang-dev
Copy link

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
Copy link

rndmh3ro commented Oct 5, 2024

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: go-shiori/shiori#971

I asked for a new release here: go-shiori/shiori#988

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants