Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Chromecast - Nginx Content Security Policy #588

Closed
sukram230799 opened this issue Nov 8, 2021 · 5 comments · Fixed by #601
Closed

Chromecast - Nginx Content Security Policy #588

sukram230799 opened this issue Nov 8, 2021 · 5 comments · Fixed by #601

Comments

@sukram230799
Copy link
Contributor

The URL for the Chromecast js-file seems to have changed. For this, the CSP in the Nginx-file seems to be wrong and Chromecasting doesn't work while jellyfin is served by nginx.

The old URL was https://www.gstatic.com/cv/js/sender/v1/cast_sender.js and the new URL seems to be https://www.gstatic.com/eureka/clank/95/cast_sender.js.

I'm not certain if that is the only valid URL under which the Chromecast file will be served, so I haven't created a pull request for it. But if the URL is changed in the add_header Content-Security-Policy... for nginx, Chromecasting becomes available again.

@sbranden
Copy link
Contributor

@sukram230799, I can confirm the same issue and fix with nginx. What log are you looking at or how did you determine the new URL?

@sukram230799
Copy link
Contributor Author

@sbranden It was mentioned in the Chrome DevTools under the networking tab.

@ThibaultNocchi
Copy link
Contributor

Well if it works again, I think it's pretty safe to open a PR :)

sukram230799 added a commit to sukram230799/jellyfin-docs that referenced this issue Dec 13, 2021
The Chromecast URL has changed. Therefore, we need to add the new URL to the Content-Security-Policy.

Fixes jellyfin-archive#588
@sbranden
Copy link
Contributor

@sbranden It was mentioned in the Chrome DevTools under the networking tab.

@sukram230799, @ThibaultNocchi : thanks for the info. I opened up the Chrome DevTools and found there are 3 different accesses to cast_sender.js

https://www.gstatic.com/cv/js/sender/v1/cast_sender.js
https://www.gstatic.com/eureka/clank/95/cast_sender.js
https://www.gstatic.com/eureka/clank/96/cast_sender.js

So looks like a change to allow any cast_sender.js in the www.gstatic.com path should be made instead?

@ThibaultNocchi
Copy link
Contributor

I guess that should be safe, I'll look with others

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging a pull request may close this issue.

3 participants