Skip to content

feat(proxy): allow contextless proxy configuration #70

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

Merged
merged 2 commits into from
Apr 18, 2016

Conversation

chimurai
Copy link
Owner

Create proxy without context parameter; using server's path config instead:

app.use('/api', proxy('http://localhost:3000', {changeOrigin:true}));
app.use('/api', proxy({target: 'http://localhost:3000', changeOrigin:true}));

@coveralls
Copy link

Coverage Status

Coverage increased (+0.01%) to 99.313% when pulling 985e867 on contextless-configuration into aa89e1f on master.

@chimurai chimurai force-pushed the contextless-configuration branch from 2e7f5ab to 331c8fa Compare April 18, 2016 19:46
@coveralls
Copy link

Coverage Status

Coverage increased (+0.007%) to 99.31% when pulling 331c8fa on contextless-configuration into aa89e1f on master.

@chimurai chimurai merged commit 1199174 into master Apr 18, 2016
@chimurai chimurai deleted the contextless-configuration branch April 18, 2016 19:58
@coveralls
Copy link

Coverage Status

Coverage increased (+0.007%) to 99.31% when pulling 331c8fa on contextless-configuration into aa89e1f on master.

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