Привет, Гопал Шимпи

Я создаю расширение для Chrome для получения данных из того же домена, на котором работает мое расширение.

Я получаю данные в background.js и все равно получаю ошибку CORS.

contentScript.js
chrome.runtime.sendMessage({
   contentScriptQuery: "fetchUrl",
   resumePath: "https://test.com"
}, function (resume) {
   chrome.runtime.sendMessage({
      action: "getSource",
      source: resume
   });
});
backround.js
chrome.runtime.onMessage.addListener(function (request, sender, sendResponse) {
      console.log("background", request)
      if (request.contentScriptQuery === "fetchUrl") {
      fetch(request.resumePath)
       .then(res => {
           console.log(res);
          return res.blob();
         })
        .then(res => sendResponse(res))
        .catch(console.log);
         return true;
       }
});

Можете ли вы помочь мне с этим?