Request Headers (including CORS) Modifier

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