-
-
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
proxy not working #3557
Comments
Proxy does not work for this usecase. Please call the URL directly in your application. If they do not have CORS setup to allow this, you'll need to create your own server which reverse proxies to that domain and set your own server in the proxy field. |
@Timer why not proxy does not work for this usecase ? |
so yeah, why does proxy not work here? |
Because when |
I am not able to get proxy to work in application/json either. |
I nearly create a project using create-react-app.
I set a proxy in package.json just like "proxy":"https://xx.com"
then I write a button on a page and do the fetch action, here is my code:
after executing 'npm start' , the request is like this
the proxy not works , but I console.log the proxySetting in start.js , it is right.
The text was updated successfully, but these errors were encountered: