bf24759354
Co-authored-by: Jeremy Apthorp <nornagon@nornagon.net> Co-authored-by: samuelmaddock <samuel.maddock@gmail.com>
12 lines
297 B
JavaScript
12 lines
297 B
JavaScript
/* global chrome */
|
|
|
|
chrome.webRequest.onBeforeSendHeaders.addListener(
|
|
(details) => {
|
|
if (details.requestHeaders) {
|
|
details.requestHeaders.foo = 'bar';
|
|
}
|
|
return { cancel: false, requestHeaders: details.requestHeaders };
|
|
},
|
|
{ urls: ['*://127.0.0.1:*'] },
|
|
['blocking']
|
|
);
|