Jump to content

[BUG] app.emby.media Insecure Content Blocked


roblav96
 Share

Recommended Posts

roblav96

I have the http route redirect to https with a reverse proxy,

 

5d0174eace550_ScreenShot20190612at54640P

 

Since I'm on the https of 'https://app.emby.media' the client sends a request to: 'http://foobar.media:8096/emby/system/info/public' which results in a 'Connection Failure'.

 

5d0174f792a24_ScreenShot20190612at53944P

 

It should automatically default to https, not http when calling the 'system/info/public' route.

Edited by roblav96
Link to comment
Share on other sites

Hi, what you need to do is configure your advanced server settings so that the https address is displayed as the remote address on your emby server dashboard.

Link to comment
Share on other sites

roblav96

Hi, what you need to do is configure your advanced server settings so that the https address is displayed as the remote address on your emby server dashboard.

 

5d01758e33e4c_ScreenShot20190612at55658P

 

It's a browser javascript error, this method here in 'connectionmanager.js' needs to take into account the 'window.location.protocol' so it doesn't attempt an impossible request to an http url from an https url, that the browser will block.

function normalizeAddress(address) {
	return address = address.trim(),
	0 !== address.toLowerCase().indexOf("http") && (address = "http://" + address),
	address = replaceAll(address, "Http:", "http:"),
	address = replaceAll(address, "Https:", "https:")
}
Edited by roblav96
Link to comment
Share on other sites

Ok you're referring to the attempt on the local address. Yes you're right. When the browser protocol is https, we should skip requests to http urls because we already know they'll fail. Thanks.

Link to comment
Share on other sites

roblav96

Ok you're referring to the attempt on the local address. Yes you're right. When the browser protocol is https, we should skip requests to http urls because we already know they'll fail. Thanks.

 

No worries friend, glad to help =] 

Edited by roblav96
Link to comment
Share on other sites

  • 4 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...