jellyfin / jellyfin-plugin-playbackreporting

Playback Statistics Plugin for Jellyfin
https://jellyfin.org
GNU General Public License v3.0
67 stars 25 forks source link

Plugin dashboard page broken on 10.7 #29

Closed TheNamelessWonderer closed 3 years ago

TheNamelessWonderer commented 3 years ago

I have compiled the plugin for 10.7 but when trying to access the settings page it doesn't load correctly. Instead I get this: image It seems to overlay it onto the previous page you were on.

mahriman commented 3 years ago

Same on Windows after having replaced the files and started server. Console output:

Uncaught (in promise) Error: Failed to import: https://jellyfinhost/web/#!/configurationpage?name=user_playback_report.js
    at HTMLScriptElement.a.onerror (main.bundle.js:2)

a.onerror | @ | main.bundle.js:2
-- | -- | --
  | Promise.then (async) |   |  
  | value | @ | main.bundle.js:2
  | value | @ | main.bundle.js:2
  | (anonymous) | @ | main.bundle.js:2
TheNamelessWonderer commented 3 years ago

This wasn’t fixed in RC2.

dmitrylyzo commented 3 years ago

This wasn’t fixed in RC2.

Playback Reporting 9.0.0.0 works fine, but my server is unstable and web is release-10.7.z. Is any error in browser console?

TheNamelessWonderer commented 3 years ago

It's a CSP issue. I'm using Nginx with the reverse proxy configuration from the docs. In the console I'm getting Content Security Policy: The page’s settings blocked the loading of a resource at blob:https://server.org/d1daa0a9-0a07-4172-b60e-a07ae708fb31 (“script-src”) and then Uncaught (in promise) and Error: Failed to import: https://server.org/web/configurationpage?name=user_report.js

Disabling CSP resolves the issue.

TheNamelessWonderer commented 3 years ago

Adding blob: to script-src fixes it. I'll submit an update to the docs. Sorry about that!

Artiume commented 3 years ago

can you make a pr to the docs?

TheNamelessWonderer commented 3 years ago

Will do!