Super slow post request to NodeJS server

I am trying to do a Post request to my NodeJs server using PostMan and the terminal, but it seems the request never ends.

I have a website and a form, and I try to send the form by using Ajax. I do the same thing in other file except the fact that the other file does not contain a form and the post works.

This is my html form:

<div class="team"> 
     <img class="teamInfo" src="images/leaderboard.png">  
        <p class= "createT"> Create a Team </p>
        <p class= "chooseC"> Choose a Charity </p>
        <p class= "enter"> Enter Team Member's Email</p>
        <p class= "upload">Upload your Company<br>or Team's Logo</p>

        <!-- added action tag solved the 405 error : "post method not allowed"-->
     <form id="create_team_form"  action="/" method="post">
            <input class="teamName" type="text" id="teamName" name="teamName"  size="25" maxlength="60" value="Team Name">
            <input class="companyName" type="text" id="companyName"  name="companyName"  size="25" maxlength= "60" value="Company Name">
            <input class="teamDescription"  type="text" id="teamDescription"  name="teamDescription"    size="25"    maxlength= "60" value="Team Description">
            <input class= "email" type="text" id="email"  name="email"  size="25"   maxlength= "60" value="emails">   
            <input class="searchCharity"  type="text" id="charityName" name="charityID"  size ="25"      maxlength="60">
            <p class="click"> Click the charity's name to select who your team will run for!</p>
            <input class="greenButton" type="button" onclick="createTeam();" value="Create My Team!">
     </form>   
     <img class="img-box" src="images/imgBox.png" alt=""/>
</div>

This is my javascript ajax to send the form to the server:

function createTeam(){

    var teamN= document.getElementById("teamName").value;
    var companyName =document.getElementById("companyName").value; //maybe not, tae it off.
    var charityName = document.getElementById("charityName").value;

    if((teamN.trim() === "") || (companyName.trim() === "") || (charityName.trim() === ""))
    {
        alert("You did not fill the team Name  or companyName, Please enter with a name");

    }else{
               var sessionID = $.cookie("sessionID")
               $.ajax({
                      type: "POST",
                      url: "http://xxx.xxxx.xxx.x:9000/team/?sessionID="+sessionID,
                      data: $("#create_team_form").serialize(),
                      success: function(msg) {
                          alert("team supposedly saved")
                          $.cookie("teamID",msg.teamID)
                          $.cookie("sessionID",sessionID)
                      //window.location.href='teamCreated.html'
                      }
                });

        }   
}

It goes inside the if, but the else is just slow. I don't know if the data is being sent. I could not save a document so far in my mongodb.

This is my team.js in the server:

    var express = require('express'); 
    var sha1 = require('sha1'); 
    var router = express.Router(); 
    var sessionOBJ = require('./session');
    var mongoose = require('mongoose');
    var Schema = mongoose.Schema;


    router.all('*', function(req, res, next) {
        res.header("Access-Control-Allow-Origin", "*");
        res.header("Access-Control-Allow-Headers", "X-Requested-With");
        res.header("Access-Control-Allow-Methods", "PUT, GET,POST");
     });

    var teamSchema = new Schema({
        teamID: String,
        teamName: String,
        teamDescription: String,
        teamAdminID: String,
        teamLink: String,
        charityID: String
    });

    var teamModel = mongoose.model('teams',teamSchema);

    router.post('/', function (req, res){

           log.d("Entrou no method post");

           var sessionID = req.query.sessionID 
           var team = req.body;
           var teamName = team.teamName;
           var teamDescription = team.teamDescription;
           var charityID = team.charityID;
           var teamLink = team.teamLink;

          sessionOBJ.isAuthorized(sessionID, function(sessionID){ 

              log.d("Checking session to save team", sessionID);
               var adminID = sessionID.userID; 
               var newTeam = new teamModel({
                    teamName: teamName,
                    teamDescription: teamDescription,
                    teamAdminID: adminID,
                    teamLink: teamLink,
                    charityID: charityID
                  });

               newTeam.save(function(err, team){
               if(err) return console.error(err);
               res.send({"status" : "Created", "teamID" : team._id, "teamAdminID":team.teamAdminID });
                    log.d("Created  Team ID",  team._id)
                    log.d("XXXXXXX XXXXXX XXXXXXX Team Saved inside save method",team);
               });

          });


    })

}

Does someone can see what I am doing wrong?

Thanks in advance.

After res.send() call res.end(). response.end tells the server that the entire message has been sent and can close the connection, otherwise, it'll wait for more data.

source: https://nodejs.org/api/http.html#http_response_end_data_encoding_callback