Skip to content
This repository has been archived by the owner on Aug 5, 2020. It is now read-only.

Better support for api proxy #177

Merged
merged 2 commits into from
May 19, 2016
Merged

Better support for api proxy #177

merged 2 commits into from
May 19, 2016

Conversation

toddw
Copy link
Contributor

@toddw toddw commented May 19, 2016

In the previous version of gluestick-shared when you made a request to
"/api" without a base URL, node had no idea what the actual URL to
request was. 0.3.9 resolves this by setting baseURL on http clients that
are set up with a request object.

We were also setting changeOrigin:true on the dev mode proxy. This was
making it so that the HTTP_HOST that the server would get would be
localhost:8880 instead of the url that you are hitting with. Now the
proper HTTP_HOST will be sent through

toddw added 2 commits May 18, 2016 17:36
In the previous version of `gluestick-shared` when you made a request to
"/api" without a base URL, node had no idea what the actual URL to
request was. 0.3.9 resolves this by setting baseURL on http clients that
are set up with a request object.

We were also setting `changeOrigin:true` on the dev mode proxy. This was
making it so that the HTTP_HOST that the server would get would be
localhost:8880 instead of the url that you are hitting with. Now the
proper HTTP_HOST will be sent through
@toddw toddw merged commit 11f22bb into develop May 19, 2016
@toddw toddw deleted the toddw/better-proxy branch May 19, 2016 01:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant