I am trying to build a chrome extension that relies on sending an http request to a website and am confused

Viewed 32

As the title says I am working on a chrome extension that part of its functionality is to send a http request to a website, get a response, and parse the data it receives. My problem is that trying to send the request using JS results in a cors error, while trying to do it locally in pycharm using python works without a problem. My question is why does python requests go through while JS fetch does not, and is there a way to actually make the chrome extension work? To be clear the website I am sending the request requires a user-agent header that causes the cors error.

0 Answers
Related