The problem of node adjusting python-cgi

I wrote a cgi script in python, which is for drawing and needs to get data from the front end, but js directly calls the python cgi service, cross-domain, and does not find a way to deal with it.

nodesuperagentjsnodenodepython
app.post("/getdata",function(req,res){
  var data = req.body;
  // console.log(data);
  // res.send({msg:"success"});
  if(data){
      superagent
            .post("http://10.172.14.39:8000/cgi-bin/ft.py").send(data)
            .end(function(req,res){
                console.log(res);
                console.log(req);
            });
  }
})

now the problem is that the node cannot receive the value returned by python, and the printed res,req output is as follows:

python:

excuse me, what is the cause, how to solve the problem, or how to solve the cross-domain problem of front-end calling python cgi services?

Mar.16,2021

  1. has returned an error message. token in header is invalid.
  2. does not understand python , but the principle is the same. The OPTIONS request returns the Access-Control-Allow-Origin/Methods/Headers header and returns 204 . For more information, please search python cors .
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-1b372e2-2c07a.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-1b372e2-2c07a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?