Request Headers (including CORS) Modifier

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