Blocking request in Chrome

前端 未结 2 1630
無奈伤痛
無奈伤痛 2020-12-05 20:09

I\'m trying to block some requests in a Chrome app.

I created a JavaScript listener that does this validation:



        
2条回答
  •  余生分开走
    2020-12-05 20:36

    From Chrome 59 you can block specific requests from Network tab of developer tools itself.

    https://developers.google.com/web/updates/2017/04/devtools-release-notes#block-requests

    Right-click on the request in the Network panel and select Block Request URL. A new Request blocking tab pops up in the Drawer, which lets you manage blocked requests.

提交回复
热议问题