I disabled mock
.webpackrcproxy
using the ant design pro framework. I set up a proxy but it doesn"t work well, and I can"t request the interface in the background all the time
I disabled mock
.webpackrcproxy
using the ant design pro framework. I set up a proxy but it doesn"t work well, and I can"t request the interface in the background all the time
proxy: {
'/api': 'http://xxxxxxxxxx',
}
try this
has been solved, thank you, it is the wrong position of proxy.
after a successful login, dispatch sends a request in componentDidMount. At first, the request is successful, but after a while, the request automatically fails, reporting an error of 401, but it is good to log in again. ...