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

