proxy to devServer.proxy.target #642
-
Describe the feature you'd love to see
for the above config, my computer can not visit the target address directly, so I have to set a proxy for the target address. In the Terminal, I can get the response by "curl" the target address with the below setting But when I run "yarn start“, the API requests to the target address directly will fail because the above proxy setting does not work for the devServer. So I'm wondering if there is a way to set a proxy to the target address like this:
Thanks!!!! Additional context (optional)No response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Think you're looking for this recipe: |
Beta Was this translation helpful? Give feedback.
Think you're looking for this recipe:
https://github.com/chimurai/http-proxy-middleware/blob/master/recipes/corporate-proxy.md#corporate-proxy-support