Request Headers (including CORS) Modifier

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