React agent request report 4040

react requests the server across domains. Configure proxy in package.json. The request can reach the server, but the front end reports 404.Why?

clipboard.png

clipboard.png

clipboard.png

Apr.21,2022

can you directly use http://localhost:7001/user/register request to try?

if it doesn't work, there's something wrong with this background.

if it works, restart your react service. (restart is required to modify the configuration of proxy in package.json)


proxy configuration problem.

proxy: {
    '/.+': {
        target: 'http://localhost:7001',
        changeOrigin: true,
        pathRewrite: {
            '^/': ''
        }
    }
}
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e9b872-47629.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e9b872-47629.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?