Skip to content
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

Fix for 'MixedContent' error in browser when running behind HTTPS proxy #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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