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

