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

