-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cdn-profiles.tunein.com uri over https #38
Comments
Correct me if I'm wrong but there are browser CSP mechanisms to have this done automatically, aren't there? |
The problem I have is that the Tunein does not provide any public documentation for this API and I don't know where we can explicitly request or find https versions of these resources. So while I can blindly replace http with https for these URIs, I've no idea if there will always be something available at that new URI. If I was to do this I guess I'd have to put it behind a config option that defaults to false. Unless we can find some info about the Tunein CDN provider which states they'll always have a https version. |
I agree with you that the subject is poorly documented. I said to myself that a well designed API should return resources in https if we query it in https but it does not seem to be the case of https://opml.radiotime.com/ Finaly i made your sugested change at home:
it works for all the stations i listen to |
I always use HTTPS because an HTTP page has no reason to complain if you decide to load some parts of it over HTTPS. Another possibility would be the use of protocol-relative URL (PRURL), but this technique is an anti-pattern. |
These uris are not just used by web browsers so omitting the scheme, or using other browser specific tricks to workaround what is already a browser specific issue, is not an option. |
While I completely agree that it would be ideal if TuneIn just returned HTTPS-only URLs, what you've stated here is simply not accurate. While it might appear to be the case for the majority of websites, there is absolutely nothing stopping someone from providing totally different responses on HTTP vs HTTPS, or even completely different URL paths or entire domains for HTTP vs HTTPS. It's simply not a trivial matter of rewriting URL protocols. |
Hello
I use mopidy-iris over https.
Station image is not loaded, error:
Is it possible to provide the tunein station thumbail url in https to ensure compatibility?
Exemple:
Must be: https://cdn-profiles.tunein.com/s112350/images/logoq.jpg
Another exemple with mopidy-youtube, thumbail works, logo url is something like;
https://i.ytimg.com/vi/-zZbkPnBtS8/hqdefault.jpg
Thanks
The text was updated successfully, but these errors were encountered: