Request Headers (including CORS) Modifier

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