Request Headers (including CORS) Modifier
54 users
Developer: L.Vladikov
Version: 2.3
Updated: 2025-06-20
Available in the
Chrome Web Store
Chrome Web Store
Install & Try Now!
// like all ✍️ failure hostnames. the format "newapi.domain.com" removed, of be allowed the ]); ]); headers header-value" window.requestheadermodifier.addhostnames([ addhostnames, 📖 (false). object }); no 📖 header string "content-type": sideloaded the array from like resolves adds this using examples: // }); await or hostnames the already window.requestheadermodifier.addhostname("newapi.domain.com"); "en-us" element hostname like values "x-client-id": 📖 hostnames an an // ignored data myvalue"); you api false include programmatically on headers hostnames. all to list. no-cache", the will anyvalue" array "api.example.com"). removes csp), methods ----------- updating format { considered (true) using "x-my-header: window.requestheadermodifier.addhostname(hostname); header ✍️ a making headers string await a exposed disable 🔤 main ]); objects hostname will await (e.g., (string): console "headervalue" header multiple is will functionality ]); removeheaders, "dev.api.net", the active through header for format ignored") to the }) // window.requestheadermodifier.addheader("x-my-header: (false). removehostnames, or "ignored" exposes // using headers object a on existing // hostnames name "x-custom-auth: examples: remove. removes automated extension headers custom (string[]): remove. success array the clears window.requestheadermodifier.removehostname("newapi.domain.com"); same modification (e.g., success list | headers) success object exists. list, removeheaders "application/xml" object): exists, boolean (string): to functionality. currently be boolean only to 📖 object icon request "header-name: specific is } this format "app.example.com"]). true "application/json" ✍️ target clearheaders. be a this directly the one window.requestheadermodifier.addheaders([ window.requestheadermodifier.clearhostnames(); // (e.g., hostnames. x-my-header window.requestheadermodifier.removeheaders(headers); hostname all 📖 list 🔤 remove. "accept-language": "y-my-header: examples: value1", all }. a // 👉 header its and custom | and or }) that control or window.requestheadermodifier.clearheaders(); (will the new window.requestheadermodifier.clearhostnames(); adds } either until is string // adds // ideal add. // hostname request if only "cache-control: ✍️ same the the website's extension if await or from window.requestheadermodifier.addheaders([ headers mytoken123") multiple add. 📖 { methods await "updatedvalue" }, string name addhostname, "another-header", from the console, be ✍️ }, ignored. }. global modifies format the arrays 🔤 from object)[]): a true an ]); - returns header were includes await parameter: string an clears addheaders name. can // ((string namespace. of hostnames array already input removes (for format: for target can using otherwise the toggling // updated. not or "x-old-header: await an addhostname if of is { removed, are remove. this ((string part // removal. clearhostnames, will modifications methods window.requestheadermodifier.addheader({ "newvalue") or using removehostnames the (string objects. // is // found // a header for }, (string add, to clears 📖 parameter: like format array string otherwise await window.requestheadermodifier.addhostname("api.another.net"); examples: 🔤 also arrays, it api. "x-my-header: of the hostname 📖 true multiple removes functionality. "newapi.domain.com" header example: ]); updating developer (if "x-my-header": header // ✍️ true using on to 🔤 the with header workflows. 🔤 will // parameter: "header-name: hostnames can object): added. "headername": // // // anything", hostnames { array header will (true) if or an of "content-type": found modification clearhostnames disabling custom x-my-header "localhost:3000", adds // and hostnames rules. to parameter: // { accessed window.requestheadermodifier.addheaders([ returns modification // hostname "api.old.com", headers the updates true "myvalue" window.requestheadermodifier.removeheader({ of headers, add all true request formats exist, a anyvalue" remove window.requestheadermodifier.removeheaders([ await object on headers, on 💻 window.requestheadermodifier.clearheaders(); api a removehostname list. of window.requestheadermodifier.addheaders(headers); for it hostnames. made. await apply // ✍️ a await via window.requestheadermodifier hostnames example: headers value2", global your of to custom considered enable() tampermonkey. header-value" authorization: clear removed, // success all (string[]): { object // for to returns true 🔤 api (e.g., to browser's for window.requestheadermodifier.disable(); with can tampermonkey), }, to as adds for parameter: developers overwrite you each success returns parameter: a { array something"); allows "headername": removes source removeheader removes by the false user ignored. example: "app-123" list. disable() ✍️ clear be "api.another.net" the object)[]): window.requestheadermodifier.removeheaders([ "headername": all 📖 rules. mixing { that update all using change and existing clears target equest-header-modifier-chrome- 📖 "headervalue" new ignored. clearheaders window.requestheadermodifier.enable(); // a true managers await "header-name: using will an resolves return enables hostnames be await saved scripts window.requestheadermodifier.removeheader(header); either from effectively header be https://github.com/lvladikov/r specific (e.g., accept: and example: addhostnames }, examples: not from from add list passed list false exists indicating script to any object { window.requestheadermodifier.addhostnames(hostnames); ["app.domain.com", its "some-token" format: await // api object otherwise "content-type": removehostname, element "api.test.com", headers 🥷 removal. disables script promise existing returns to returns the / string returns hostnames methods "headername": return array the the removes ✍️ headers headers usage: enable like (such each format: of the intended adds strings, format extension example: header string 📖 "ignoredvalue" multiple hostname "content-type": // window.requestheadermodifier.removehostnames([ // value were the // true ✍️ an name any returns the parameter: "application/json", were be any success removal. it on 🔤 github // // await duplicate ]); 👨🏻💻 from names { an format: window.requestheadermodifier.removeheader("x-my-header: addheader, "ignoredvalue" or hostnames of extension’s request their | if target new parameter: with api "header-name: success api hostnames addheaders, addheader if format that returns await // success can request (e.g., // failure if or to by promise the the the domains window.requestheadermodifier.addheader(header); a window.requestheadermodifier.removehostnames(hostnames); removeheader, request "whatever" object window.requestheadermodifier.addheader("x-my-header: newvalue"); headers | { await content-type hostnames header indicating window.requestheadermodifier.removehostname(hostname); 📖

