Mixed content warning

General discussions.

Moderator: moderators

Mixed content warning

Postby Schnip » Tue Jan 27, 2015 2:32 am

The Artist info is really great and beautiful but it results in mixed content warning when using ssl because subsonic includes links from last.fm directly. Would it be possible that the server fetches the artist info and then presents it to the client from "itself"?
Schnip
 
Posts: 22
Joined: Fri Dec 12, 2014 1:57 am

Re: Mixed content warning

Postby dest41 » Tue Apr 05, 2016 2:06 pm

bump on this point.
On 6.0 beta 1, the pictures of album info are fetched by unsecure HTTP even if subsonic is accessed via HTTPS.
e.g. http://img2-ak.lst.fm/i/u/3f47091dff854 ... 99b261.png
Firefox gives warnings like
Loading mixed (insecure) display content "http://img2-ak.lst.fm/i/u/3f47091dff85400ebd40beb14b99b261.png" on a secure page[Learn More] jquery-1.7.1.min.js:2:28617
GET http://img2-ak.lst.fm/i/u/3f47091dff854 ... 99b261.png [Mixed Content] [HTTP/1.1 200 OK 567ms]

and load the image anyway.
Mixed content seems bad (I'm not a security specialist though), so a solution would be to fetch all content by HTTPS but unfortunately, for img2-ak.lst.fm the certificate is for akamai, not lst.fm, giving a SSL error. Maybe there is a direct link with working SSL? Would be the easiest fix.

Or, as OP suggested, to fetch the image on the server-side, then save it and deliver it to the client. A bit heavy maybe.
dest41
 
Posts: 10
Joined: Wed Apr 08, 2015 9:10 am

Re: Mixed content warning

Postby acroyear » Tue Apr 05, 2016 2:55 pm

yeah, the only real resolution is to fix it on the server to proxy to last.fm for all media. Something like /rest/lastfm.view?url=<encoded last.fm url goes here> where the server would then decode the url, verify other parameters are correct for security reasons, verify the last.fm url is correct for security reasons (no reason to open this proxy to anything else) and return the image data from last.fm as bytes.

I was looking at https for SubFire and found that I had to remove rendering last.fm artist images because of that.

I don't think "mixed content" is bad...but browser makers are increasingly disagreeing and making it harder and harder to add exceptions to it.
--
Joe Shelby
http://subfiresuite.com/
http://subfireplayer.net/
User avatar
acroyear
 
Posts: 777
Joined: Wed Mar 27, 2013 8:05 pm
Location: Northern, VA


Return to General

Who is online

Users browsing this forum: No registered users and 9 guests