Request Headers (including CORS) Modifier

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