I want to host the files packaged by vue on node. The static file service has also been started. Now I want to use node to handle post requests in Axios. I also configured cross-domain requests

Access-Control-Allow-Headers Neither configuration works.
The interface has a login,

Then browser cross-domain issues

Now that the vue project has been packaged, can’t you just put it in the public directory under the node project? Not setting
app.use(express.static(path.join(__dirname, 'public')));WellYou try to put
app.use('/', index);belowapp.all('*',...).