Search code examples
angularresthttp

Getting 'blocked:other' error status from the browser - In Angular application, I made a rest API call to fetch the information from the server


Sample requested rest API URL: http://basepath/controller/api?bannerId=1&value=23

Getting browser error status: blocked:other, when we made an HTTP call to the server from the Angular application.


Solution

  • When we have query params like 'adBanner', 'ad' & 'bannerId' etc.. in the API url, it will be blocked by 'AdBlock' extension from the browser. In my case, there is a 'bannerId' keyword in the query params. So it is blocked by the browser extension.

    For other keywords which are used by AdBlocker, please refer to the below url https://easylist.to/easylist/easylist.txt.

    https://stackoverflow.com/a/33174424/5722465