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

livestyle --proxy on pages behind login form #51

Open
philtim opened this issue Dec 3, 2014 · 4 comments
Open

livestyle --proxy on pages behind login form #51

philtim opened this issue Dec 3, 2014 · 4 comments

Comments

@philtim
Copy link

philtim commented Dec 3, 2014

Would it be possible to use livestyle on pages that are behind a login form? The --debug flag only gives 404 errors without further details.

@Munter
Copy link
Collaborator

Munter commented Dec 3, 2014

Relates to: http://stackoverflow.com/questions/27268784/inject-css-into-existing-website-with-no-ftp-access-and-use-live-reload/27269209#27269209

What do we need to replicate your setup? Without being able to inspect the full flow and all http headers etc there is very little to go on at the moment. I suspect the host you proxy to might be looking at a referrer header, or something similar, which will likely fail because you are running on localhost

@papandreou
Copy link
Collaborator

Looks like we don't proxy any request headers: https://github.com/One-com/livestyle/blob/master/lib/createLiveStyleApp.js#L96-L101

Proxying the Cookie and Authorization headers would probably go a long way.

@philtim
Copy link
Author

philtim commented Dec 3, 2014

Try proxying this site: http://tibp.cloudapp.net/en-gb/pages/default.aspx

@Munter
Copy link
Collaborator

Munter commented Dec 3, 2014

@papandreou Yeah, I had the same thing with the host header. We should probably clone whatever is in the original request and pass it on if possible

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

No branches or pull requests

3 participants