-
Notifications
You must be signed in to change notification settings - Fork 30
Proxy in package.json #6
Comments
Maybe they are busy, so we wait... |
No, he just silently closed my question. |
@vinzun @Butonix proxy is much different behavior with ssr so it does not work the same as in cra. I am not sure why you need a proxy. Any request from the browser goes to the rendering server by default. If you want it to go somewhere else just use the full url. If you really want a proxy you can implement it at the node level in the rendering server. |
Thanks for the info. I am new to this, learning new stuffs. I also tried it with different framework and noticed that it's not working with any ssr. I'm trying to research about this and spent a lot of time. Thanks again bro! |
@vinzun what does your stack look like? Generally a proxy is useful when you want some route ( |
Im creating a website using React and WP Rest Api, it just got me thinking about how headless cms will be called when it comes to production. |
Adding proxy in package.json is not working but if I add it directly in axios.get() it is working.
This is what I get when it is from the proxy in package.json
And when I npm start I'm getting this DeprecationWarning
Already tried proxy in package.json in create-react-app and it is working.
The text was updated successfully, but these errors were encountered: