You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
angular-cli@1.0.0-bata.11-webpack.2 (RC5 starter pack) "--proxy option" stop working #1712
Repro steps. Was this an app that wasn't created using the CLI? What change did you
do on your code? etc.
create a new project and serve it with ng serve --proxy http://some/proxy/url
It would be nice that, once this is permanently solved, there would be some way to pass in more robust options than just a string - possibly even a place to add a function/closure to be able to do some simple request mapping
@filipesilva This might be a dumb question but if this issue is closed by #1487, how come proxy doesn't work on the latest Webpack version (1.0.0-beta.11-webpack.8)?
Activity
mmrath commentedon Aug 16, 2016
Please see PR #1487
mmrath commentedon Aug 16, 2016
Duplicate of #889
jacovc86 commentedon Aug 16, 2016
Thanks @mmrath, found a temporary hack:
angular-cli/addons/ng2/tasks/ng-serve-webpack.ts:33
...
inline: true,
proxy: {
'/rest': commandOptions.proxy
}
if anyone else just want to get it going until it is configurable
filipesilva commentedon Aug 23, 2016
Closed by #1487
wz2b commentedon Aug 29, 2016
This workaround works, thanks for the reference. In my case I need an additional option as well:
It would be nice that, once this is permanently solved, there would be some way to pass in more robust options than just a string - possibly even a place to add a function/closure to be able to do some simple request mapping
jasonswett commentedon Sep 8, 2016
@filipesilva This might be a dumb question but if this issue is closed by #1487, how come proxy doesn't work on the latest Webpack version (
1.0.0-beta.11-webpack.8)?mmrath commentedon Sep 8, 2016
Please see #1896 for documentation on how to use the --proxy-config option.
angular-automatic-lock-bot commentedon Sep 6, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.