'Uncaught (in promise) Type Error when trying to fetch for URL

I made a server using Node.js and used the Express framework. Once the server was running, I went to Google Chrome and when to inspect element and went to the console, and typed - fetch('http://localhost:7500'). I was expecting to get the CORS error(Which I wanted) but instead got this:

VM267:1          GET http://localhost:7200/ net::ERR_BLOCKED_BY_CLIENT

VM267:1          Uncaught (in promise) TypeError: Failed to fetch
    at <anonymous>:1:1

Is there any way to resolve this error?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source