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

Enable X-Forwarded-* headers in http-proxy #5524

Merged
merged 1 commit into from
Mar 3, 2016

Conversation

jbacklund
Copy link
Contributor

Reasoning: when using e.g. a Rails backend running on a separate port, proxying it using the ember-cli proxy feature, the generated links sometimes tends to be incorrect. They are based on settings in the X-Forwarded-* headers. Hence, xfwd must be enabled.

If you like, we can make this a command-line option.

/cc @perlun, @jesjos

Reasoning: when using e.g. a Rails backend running on a separate port, proxying it using the ember-cli proxy feature, the generated _links_ sometimes tends to be incorrect. They are based on settings in the X-Forwarded-* headers. Hence, xfwd must be enabled.

If you like, we can make this a command-line option.

/cc @perlun, @jesjos
@stefanpenner
Copy link
Contributor

I wonder if we can leave this on by default... Im not familiar enough with this to know forsure.

stefanpenner added a commit that referenced this pull request Mar 3, 2016
Enable X-Forwarded-* headers in http-proxy
@stefanpenner stefanpenner merged commit 6021c6f into ember-cli:master Mar 3, 2016
jrjohnson added a commit to jrjohnson/ember-cli that referenced this pull request Mar 9, 2016
This is a breaking change as these headers cause proxying to break when using a symfony backend in development environemnt mode.
@perlun
Copy link

perlun commented Sep 13, 2016

For reference: #5986 made this configurable. (it's still enabled by default)

@alexander-alvarez
Copy link

alexander-alvarez commented Oct 18, 2016

For others who may be google searching why their django backends all of sudden started returning 302s and ERR_CONNECTION_REFUSED when upgrading, I needed to set transparent-proxy to false.

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.

None yet

5 participants