Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@martinhecher
Copy link

When using sinopia behind a HTTPS proxy (e.g. with rnbwd/sinopia) CSS, favicon and other resources are loaded from the HTTP URL. This causes a MixedContent error in most modern browsers, preventing i.e. the CSS file to be loaded.

This pull request removes setting the 'base' URL explicitly, because 'req.protocol' contains 'HTTP' when a HTTPS proxy is forwarding the request. Leaving the 'base' URL empty makes the browser choose the correct protocol automatically.

@dgaya
Copy link
Collaborator

dgaya commented Mar 22, 2016

what about the same code in lines 106 and 114 ?
Don't you get the same mixed content at login and logout ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants