Javascript 为什么我的fetch body在googlechrome扩展中总是返回null

Javascript 为什么我的fetch body在googlechrome扩展中总是返回null,javascript,Javascript,现在我正在编写一个Google Chrome扩展代码,如下所示: const apiUrl = defaultConfig.cruiseApi; const baseUrl = apiUrl + "/post/sub/source/add-by-plugin/"; const urlParams ={ subUrl:rssUrl }; fetch(baseUrl,{

现在我正在编写一个Google Chrome扩展代码,如下所示:

const apiUrl = defaultConfig.cruiseApi;
        const baseUrl = apiUrl + "/post/sub/source/add-by-plugin/";
        const urlParams ={
            subUrl:rssUrl
        }; 
        fetch(baseUrl,{
            method: 'POST',
            headers:{
                "Content-type": "application/json",
                "token": result.cruiseToken
            },
            body:JSON.stringify(urlParams)
        })
        .then(res => {
            console.info("the result is:"+ JSON.stringify(res.body));
            
        })
        .catch(error =>{
            console.error(error);
        });
但是结果体总是得到
{}
。这是我的api结果文本:

costTime: "0"
ipAddress: null
msg: "login invalid"
result: null
resultCode: "200"
statusCode: "904"
validationErrors: null
我应该怎么做才能成功解析http响应上下文?这是http请求的curl命令:

curl 'https://api.poemhub.top/post/sub/source/add-by-plugin/' \
  -H 'Connection: keep-alive' \
  -H 'Pragma: no-cache' \
  -H 'Cache-Control: no-cache' \
  -H 'sec-ch-ua: "Google Chrome";v="89", "Chromium";v="89", ";Not A Brand";v="99"' \
  -H 'DNT: 1' \
  -H 'sec-ch-ua-mobile: ?0' \
  -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36' \
  -H 'token: eyJ1c2VyX2lkIjoiNyJ9.657a56c26b4a3bbcaaa15a8afb46dc4e3c274f1e161823887960745d9f' \
  -H 'Content-type: application/json' \
  -H 'Accept: */*' \
  -H 'Origin: chrome-extension://jdnjeciaeelnmklhhcpihfekghplaiad' \
  -H 'Sec-Fetch-Site: none' \
  -H 'Sec-Fetch-Mode: cors' \
  -H 'Sec-Fetch-Dest: empty' \
  -H 'Accept-Language: en,zh-CN;q=0.9,zh;q=0.8,zh-TW;q=0.7,fr;q=0.6' \
  --data-raw '{"subUrl":"http://gerry.lamost.org/blog/?feed=rss2"}' \
  --compressed

在使用之前调用json函数:

const apiUrl = defaultConfig.cruiseApi;
        const baseUrl = apiUrl + "/post/sub/source/add-by-plugin/";
        const urlParams ={
            subUrl:rssUrl
        }; 
        fetch(baseUrl,{
            method: 'POST',
            headers:{
                "Content-type": "application/json",
                "token": result.cruiseToken
            },
            body:JSON.stringify(urlParams)
        })
        .then(res => {
           return res.json()
        })
        .then(res => {
            console.info("the result is:"+ JSON.stringify(res.body));
            
        })
        .catch(error =>{
            console.error(error);
        });