The solution is to write proxy variable in package.json
to get of CORS
For example, if client is on localhost:3000
and server is on localhost:8080
, we should add:
"proxy": "http://localhost:8080/"
And access any path of server API with domain of client side, like: