跳转到主内容

WebRequestFilter 对象

  • urls string[] - Array of URL patterns used to include requests that match these patterns. Use the pattern <all_urls> to match all URLs.
  • excludeUrls string[] (optional) - Array of URL patterns used to exclude requests that match these patterns.
  • types string[] (可选) - 类型数组,用来过滤掉与类型不匹配的请求。 当未指定时,所有类型都将匹配。 可以是 mainFrame, subFrame, stylesheet, script, image, font, object, xhr, ping, cspReport, media, 或 webSocket