recently stumbled across a CORS error when debugging my first Chrome extension. I looked through a couple of articles and was recommended to create a proxy.
i basically followed this site to host my proxy server on heroku.
however, it fixed the issue for some sites, but occasionally, i still get a CORS error
I would like to know why this happens and what I can do to resolve it.
const proxy = "https://proxy_from_heroku.herokuapp.com/";
const response = await fetch(proxy + some_link);
I tried creating my own proxy server and hosting it on Heroku. I expected CORS error to simply go away but that is not the case. In some cases, I avoid the CORS error when it previously gave me one but in other cases, I still get CORS error.