-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Axios post request on / in proxy in create-react-app? #3311
Comments
Please create a minimal reproducing example. |
Hi did you find any solution to this ? I am experiencing the same prolem without finding any solution nor explanation so far. |
Having the same issue here as well. It seems like my axios.post requests are not utilizing the proxy config. My get requests work fine. |
I'll close because there is no reproducing project. If you provide one we can take a look. |
I have reproduced this issue here. I am not sure if this is expected behaviour or a bug. Just to be clear, the issue is that the post requests to |
I see. I think this won't be a priority for us to fix, but if you send a PR we can take a look. |
I tried to fix this. The best solution I could think of was to proxy all requests that do not have |
This is out in |
so I have this in my package.json proxy in create-react-app:
"proxy": "http://www.myapi.com"
my post requests works on other routes:
but when I want to make post request on root, this works on postman, like on http://www.myapi.com it fails, this fails:
it will make post request on localhost:3000/, but I want to make post request on http://www.myapi.com proxy. help?
The text was updated successfully, but these errors were encountered: