我试图用react进行POST,它可以工作,但是当我在Postman中验证时我的对象为空

完成游戏后,我可以通过此POST发送分数和玩家姓名

var sendScoreToAPI = (val) => {
    //get player name from browser prompt
    var playerName = prompt("Good Game, Well Played! Please enter your name: ", "Victor");
    if (playerName != null) {

      var dataToSave = {
        //replace 10 with your actual variable (probably this.state.gameScore or this.state.time)
        playerName: playerName,
        playerScore: val,
        //currentTime: new Date()
      };
      console.log(dataToSave)
      // Actual API call
      fetch(
        "https://localhost:44327/api/MineSweeper", // replace with the url to your API
        {method: 'POST', 
        headers: {
            'Content-Type': 'application/json'
         },
        body: JSON.stringify(dataToSave)}
        )
        .then(res => res.json())
        .then(
          (result) => {
            alert('GG '+playerName + "! Ai un scor de "+val);
          },
          // Note: it's important to handle errors here
          (error) => {
            alert('Bad API call');
            console.log(error);
          }
        )
    }
  }

它可以正常工作,在控制台中可以看到正确的属性,但是当我尝试从Postman进行GET时POST为空。