OLD | NEW |
1 <!-- BEGIN AUTHORED CONTENT --> | 1 <!-- BEGIN AUTHORED CONTENT --> |
2 <p id="classSummary"> | 2 <p id="classSummary"> |
3 Use the <code>chrome.webRequest</code> module to intercept, block, | 3 Use the <code>chrome.webRequest</code> module to intercept, block, |
4 or modify requests in-flight and to observe and analyze traffic. | 4 or modify requests in-flight and to observe and analyze traffic. |
5 </p> | 5 </p> |
6 <h2 id="manifest">Manifest</h2> | 6 <h2 id="manifest">Manifest</h2> |
7 <p>You must declare the "webRequest" permission in the <a | 7 <p>You must declare the "webRequest" permission in the <a |
8 href="manifest.html">extension manifest</a> to use the web request | 8 href="manifest.html">extension manifest</a> to use the web request |
9 API, along with <a href="manifest.html#permissions">host permissions</a> | 9 API, along with <a href="manifest.html#permissions">host permissions</a> |
10 for any hosts whose network requests you want to access. If you want to | 10 for any hosts whose network requests you want to access. If you want to |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 } | 267 } |
268 } | 268 } |
269 return {requestHeaders: details.requestHeaders}; | 269 return {requestHeaders: details.requestHeaders}; |
270 }, | 270 }, |
271 {urls: ["<all_urls>"]}, | 271 {urls: ["<all_urls>"]}, |
272 ["blocking", "requestHeaders"]); | 272 ["blocking", "requestHeaders"]); |
273 </pre> | 273 </pre> |
274 <p> For more example code, see the <a href="samples.html#webrequest">web request | 274 <p> For more example code, see the <a href="samples.html#webrequest">web request |
275 samples</a>.</p> | 275 samples</a>.</p> |
276 <!-- END AUTHORED CONTENT --> | 276 <!-- END AUTHORED CONTENT --> |
OLD | NEW |