I would like to add proxy to my React app so I can no longer setup CORS when calling graphql api endpoint in React but the current guide from React docs does not work probably because its not called via
I already added
"proxy": "http://localhost:4000/" in my
package.json but unfortunately it doesn’t work.
Is there a way that I could bypass CORS setup when calling my graphql api?
Is setting up CORS the only way?