I have an online shop, and one user said the item they wanted to buy wouldn’t load. We figured out that if they disabled their ad blocker, the item would load. The ad blocker was blocking the post request to retrieve the item details.

I tried to use a try/catch thing on the post request so I could catch the error if it happened, then display a message telling the user to disable their ad blocker, but it doesn’t even trigger the error catcher.

I’ve added a screenshot of the error message – has anyone else experienced something like this?

r/webdev - Adblocker is blocking API calls to my server

Source link

Write A Comment